Skip to content

Instantly share code, notes, and snippets.

@martinsam16
Created January 21, 2021 13:45
Show Gist options
  • Save martinsam16/4a56daac9345b6a9a1a405d2185aa900 to your computer and use it in GitHub Desktop.
Save martinsam16/4a56daac9345b6a9a1a405d2185aa900 to your computer and use it in GitHub Desktop.
Limit resources in wsl2
  1. Enter the user's folder. C:\Users\USER

  2. Create the file: .wslconfig

  3. Enter the following:

[wsl2]
memory = 4GB # Limits memory
processors = 2 # Limits virtual processors
  1. Save and restart the LxssManager service

  2. Enjoy :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment