High CPU usage for vmmem

Steve Lo 135 Reputation points
2023-03-21T19:12:59.2566667+00:00

Hi,

I have experienced high CPU usage for Vmmem frequently (~every 2days) and the only solution at the moment is simply restart my machine.

It is understood that is related to WSL and I do have a Docker image running on Ubuntu on Windows. However it is not really responding for Ubuntu and Docker (see below) and CPU usage is still that high even I manually close Docker Desktop and run cmd wsl --shutdown.

It's really disruptive for me and any opinion would be appreciated.

Cheers

Steve

User's image

User's image

User's image

User's image

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

12 answers

Sort by: Newest
  1. TravisR 0 Reputation points
    2023-11-27T05:02:53.7266667+00:00

    Apologies for commenting on an old post. I've been having this issue for years, but it's been significantly more frequent throughout 2023.

    For me the issue was related to my screenshot tool. It automatically copies the captured area as a PNG image to my clipboard, which appears to make WSL very unhappy with me. Clearing the clipboard by copying some other random bit of text helps calm it down after several seconds.

    It appears to be the most impactful after I've used WSL in some way, but can happen with or without Docker running as well (no idea why). Clearing the clipboard in these cases also helps.

    Was this answer helpful?

  2. Qwerty Vítězslav Ackermann Ferko 0 Reputation points
    2023-09-13T15:06:04.68+00:00

    It is not possible to kill the process, but you can change it's affinity.

    Running wsl --shutdown in administrator cmd seems to have worked for me in the end as well.

    Anyway, I want to point out that in my case, the issue was caused after I stopped Docker. After that I could not even restart it as it got stuck on the launch screen.

    Was this answer helpful?

  3. Antonio Torres Vargas 0 Reputation points
    2023-09-13T14:57:56.0433333+00:00

    This worked for me.

    Create the following text file at:

    C:\Users<your-username>.wslconfig

    [wsl2]                                                                           
    guiApplications=false
    

    then restart the PC

    Was this answer helpful?

    0 comments No comments
  4. Petr Bodnár 40 Reputation points
    2023-07-23T10:22:01.23+00:00

    Note that this bug seems to have been discussed at https://github.com/microsoft/WSL/issues/6982 for over 2 years already. From there, it looks like pressing Win+Ctrl+Shift+B could also help, as it resets the graphic (video) driver which apparently causes the issue.

    As stated by WFarmer, stopping the Window Subsystem for Linux (wslhost.exe) should work as well. In the linked thread, restarting the Windows service called WslService could help as well.

    Of course, none of this helps with avoiding the issue altogether, unfortunately.

    Was this answer helpful?

    9 people found this answer helpful.
  5. Walker, James (SI BP AM R&D SYS) 85 Reputation points
    2023-07-17T13:47:30.0733333+00:00

    Open cmd prompt, run as admin,

    wsl --shutdown
    

    Was this answer helpful?

    10+ people found this answer helpful.