Vmmem use much ram usage
Last updated
Last updated
This is answer from support team:
You can do these steps to limit ram consuption:
Windows WSL RAM settings
You can create a file named .wslconfig to restrict resources used by wsl2.
Create the .wslconfig File:
Open File Explorer and navigate to your user's home directory, usually C:\Users.
Here, create a new text file named .wslconfig
Edit the .wslconfig File:
You can right-click the newly created .wslconfig file and open it with a text editor, such as Notepad.
Add the following configuration parameters to limit memory (adjust the values according to your preference): [wsl2]
memory=4GB # Limits VM memory in WSL 2 to 4 GB
processors=2 # Limits the number of processors to 2
swap=8GB # Sets the swap size to 8 GB