Skip to content

Instantly share code, notes, and snippets.

@Codes-Lab
Created April 27, 2023 20:07
Show Gist options
  • Save Codes-Lab/869569753208f0bb82fc324d82dc3fe1 to your computer and use it in GitHub Desktop.
Save Codes-Lab/869569753208f0bb82fc324d82dc3fe1 to your computer and use it in GitHub Desktop.
vmmem high RAM and CPU usage fix
#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