Created
April 27, 2023 20:07
-
-
Save Codes-Lab/869569753208f0bb82fc324d82dc3fe1 to your computer and use it in GitHub Desktop.
vmmem high RAM and CPU usage fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Using docker with WSL2 can slow your system due to a service vmmem | |
#vmmem is consuming most of the memory [in my case 12GB] and CPU | |
#To fix it :- | |
#Go to your user folder C:\Users\<Your_Username> | |
#create a file (.wslconfig) with following content | |
[wsl2] | |
memory=4GB | |
processors=4 | |
#And then restart the service "LxssManager" | |
#Go to elevated powershell [Powershell as Admin] | |
Restart-Service LxssManager | |
#Restart your docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment