High CPU usage for vmmem

Steve Lo 100 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 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,780 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,139 questions
{count} votes

15 answers

Sort by: Most helpful
  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.


  2. Fabio Antunes 0 Reputation points
    2023-12-05T03:10:28.4066667+00:00

    Just had this problem and the only way to fix it after having already quit the Docker Desktop app and without having to reboot, was running this in an elevated Powershell prompt (Run as Administrator):

    Restart-Service LxssManager
    

  3. Myles Prather 0 Reputation points
    2024-01-10T19:09:42.3+00:00

    I am having this problem. I am not using Docker. WSL has become unusable for me. How about a fix?

    0 comments No comments

  4. Robert Lee 0 Reputation points
    2024-01-10T19:13:14.1533333+00:00

    Yes, this has gotten worse recently. More specifically this week which I'm not sure what's changed. Before I was safe if I hadn't had images copied to my clipboard or had Filezilla running but it seems there's now something else triggering it.


  5. Stéphane Tremblay 0 Reputation points
    2024-04-04T18:43:04.1866667+00:00

    I am getting this issue as well where VMmemwsl starts progressively using more and more CPU until it reaches 100% all while doing nothing in my WSL Ubuntu.

    However, I noticed this only happens when I am connected to our corporate Citrix Secure Access VPN, in which case I cannot access the internet. As soon as I disconnect from the VPN, CPU usage drops back down to normal.

    All of you who had the CPU spike issue, can you all please check if networking or internet access from WSL has anything to do with the spike?

    I hope this helps.