Stopping Vmmem from Using Ram

I am using Docker to run some containers on Windows 10, and when I was done I noticed an application named vmmem was using almost all of my ram: ~12GB. According to this it is because of Docker and it said if I closed all docker images and containers it would stop. So I stopped and removed all Docker containers and images by the following batch file:

@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i

from:

so when you type docker container ls -a & docker image ls -a they both show nothing. However in Task Manager I still see vmmem using about 4 GB of RAM. What else can I do to stop this? Thanks.

3

5 Answers

I found the simplest and easiest way to shut down Vmmem is to go into Windows powershell / cmd and enter: wsl --shutdown. This shuts it down.

2

Create a %UserProfile%\.wslconfig file, and add the following configuration to it:

[wsl2]
memory=6GB # How much memory to assign to the WSL2 VM.
processors=5 # How many processors to assign to the WSL2 VM.

Then restart WSL2, by running the following command in PowerShell:

Restart-Service LxssManager

Source:

2

to check out all running distros on your WSL

wsl -l -v

to terminate the ones in use

wsl -t {insert distro} 

more here

0

Try this way

  1. open start menu -> find 'Hyper-V Manager' just by typing
  2. stop the virtual machine -> right-click -> turn off (look at the picture)
1

Go to Run > Type "services"

Find docker and click stop

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest