You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
All WSL commands hang (including wsl --shutdown) but WSL is constantly using 30-40% CPU #8529
Reacted by Michael Papin, Paul Owen, Thierry Herrmann, Łukasz Byjoś, Leonardo Martins, mrgreywater, 林煒清(Lin Wei-Ching), kgtkr, Niek van Bennekom, David and 256 more
Reacted by Lucas O'Neil, Łukasz Szafirski, Hagen Kuehn, Tony Baidoo, Greg Wróbel, Edward Brown, Gaz, milkpirate, lirc571, Crashkila101 and 5 more
Reacted by Nadia Davari, Rishabh Bhatnagar, Marilena, ravindrabajpai, dovwatbnh, Shawn Eary, Hector Orellana and happiestlife
Reacted by pk5ls20, happiestlife and Nirlep
Reacted by Alex Igor, Marian Klühspies, Alex, Theron E. Weimer, Jr., Filip Persson, Bill Jetzer, henriklb, Christian Wolf, Aapo Soukkio, Gaz and 12 more
I have this issue as well. Killing the WSL process from taskmanager recovers, but it does it again. Especially (but not only) after it comes back from sleep.
Reacted by AnnaMadsenKnowit, Alex Dragan, Jay Lavarenne, gcattan, karthik kumar b, m-deckel, Milan Davídek, Noah Jahn, Braden Steffaniak, Alireza Mht and 57 more
I'm not the original poster, but I'm having a similar issue: every wsl command hangs (including wsl --shutdown), this causes problems with Docker, but because of the issues with WSL I can't even reinstall Docker itself (I initially thought it was a Docker issue but everything seems to point back to WSL).
wsl.exe dmesg also hangs so I can't post its output.
Reacted by Thierry Herrmann, zibberzoo, Carlos, Andrey Rudenko, Niek van Bennekom, dipushrestha, abdulsalamalmahdi, Theron E. Weimer, Jr., Matěj Račinský, Filip Persson and 23 more
Same here. Need to terminate the process from task manager. This issue started after updated WSL to the Store version.
Reacted by Nik, John Ericson, Ciaran Woodward, Brandon Moore, Duncan Murchison, Stefan, luislopezsegofinance, pkravtsov, Tolulope Olagunju, Stripy42 and 2 more
This should not have been closed - maybe the person went on vacation (7days?)
Happens often when attempting to switch folders using VSCode. Hangs -- generally just reboot to get back to working again for a while.
Heavy CPU from vmmemwsl
Windows ARM64
Reacted by 林煒清(Lin Wei-Ching), tnikula, abdulsalamalmahdi, Rickvian Aldi, Theron E. Weimer, Jr., Nathan Povo, Alex, Fridfinnur M., Alec Vivian, Gaukas Wang and 15 more
Please reopen, this issue should not have been closed. This happens all the time, usually after waking the computer from sleep. Usually a simple wsl --shutdown worked after a ~30s wait, but today even this method failed as all wsl commands hang indefinitely. I need to go into task manager and shut down vmwp.exe, as otherwise the vmmem process persists even if I kill all wsl processes manually, and the wsl commands hang anyways.
This problem is really frustrating as it forces me to restart Docker and all containers, as well as my IDE, which with large projects can take some time.
Reacted by JP Strydom, 林煒清(Lin Wei-Ching), tnikula, robross0606, Frido Emans, Simon Duguay-Létourneau, dipushrestha, Vernon Mensah, AnnaMadsenKnowit, Rickvian Aldi and 70 more
Please reopen, this issue should not have been closed. This happens all the time, usually after waking the computer from sleep. Usually a simple wsl --shutdown worked after a ~30s wait, but today even this method failed as all wsl commands hang indefinitely. I need to go into task manager and shut down vmwp.exe, as otherwise the vmmem process persists even if I kill all wsl processes manually, and the wsl commands hang anyways.
This problem is really frustrating as it forces me to restart Docker and all containers, as well as my IDE, which with large projects can take some time.
I was literally about to comment the same thing! This issues has been driving me CRAZY!!!
In my case WSL stopped working because the drive the .vhdx files are on was full. I solved it with these steps:
use a tool (ie. treesize free - run winget install --id JAMSoftware.TreeSize.Free) to find things to delete from the affected drive
terminate all wsl* processes via task-manager
run wsl --shutdown to inhibit WSL to start-up and lock the vhdx files
find the affected vhdx files (if you did not move them, they are here by default: %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu.....\LocalState\ext4.vhdx)
compacting the VHDX files of the WSL instances to make additional space on the drive and make sure the files are not corrupt - run diskpart (in an administrative console), then execute these commands:
I am facing a similar issue but it is not related to my PC going to sleep.
WSL2 will simply crash at random times, even when I am connected to WSL in VSCode.
A wsl --shutdown will fix the issue (until it inevitably happens again!) and I do not appreciate having to restart WSL, close and reopen my editors and restart Docker multiple times every day.
wsl --update tells me that I am on the most recent version of WSL.
Is this something that is ever going to be investigated / fixed? It appears that this issue has been going on for almost 2 years now, with little to no support from Microsoft themselves.
I am facing a similar issue but it is not related to my PC going to sleep.
WSL2 will simply crash at random times, even when I am connected to WSL in VSCode.
A wsl --shutdown will fix the issue (until it inevitably happens again!) and I do not appreciate having to restart WSL, close and reopen my editors and restart Docker multiple times every day.
wsl --update tells me that I am on the most recent version of WSL.
Is this something that is ever going to be investigated / fixed? It appears that this issue has been going on for almost 2 years now, with little to no support from Microsoft themselves.
Same as me. it happens to me every day for a week or so, without having made any major changes on my part.
I am facing a similar issue but it is not related to my PC going to sleep.
WSL2 will simply crash at random times, even when I am connected to WSL in VSCode.
A wsl --shutdown will fix the issue (until it inevitably happens again!) and I do not appreciate having to restart WSL, close and reopen my editors and restart Docker multiple times every day.
wsl --update tells me that I am on the most recent version of WSL.
Is this something that is ever going to be investigated / fixed? It appears that this issue has been going on for almost 2 years now, with little to no support from Microsoft themselves.
U can try to optimize the performance of wsl -
Create a separate disk partition for the wsl image
Exclude the drive with wsl from windows security. It will make WSL 10X faster.
Use docker natively in wsl rather than using wsl as backend for docker-desktop
These thing have make my wsl bit faster and those issues start coming less frequent
Reacted by AN0IHSVxgZulP5J0pgdf
surely-you-cannot-be-sirius commented on Jun 9, 2025
I am facing a similar issue but it is not related to my PC going to sleep.
WSL2 will simply crash at random times, even when I am connected to WSL in VSCode.
A wsl --shutdown will fix the issue (until it inevitably happens again!) and I do not appreciate having to restart WSL, close and reopen my editors and restart Docker multiple times every day. wsl --update tells me that I am on the most recent version of WSL.
Is this something that is ever going to be investigated / fixed? It appears that this issue has been going on for almost 2 years now, with little to no support from Microsoft themselves.
U can try to optimize the performance of wsl -
Create a separate disk partition for the wsl image
Exclude the drive with wsl from windows security. It will make WSL 10X faster.
Use docker natively in wsl rather than using wsl as backend for docker-desktop
These thing have make my wsl bit faster and those issues start coming less frequent
Unfortunately that doesn't solve the problem. I am not really interested in improving the performance. When it works, it works fine, it just keeps crashing. 'less frequent' ≠ never, so this really doesn't do much to fix the issue
Unfortunately that doesn't solve the problem. I am not really interested in improving the performance. When it works, it works fine, it just keeps crashing. 'less frequent' ≠ never, so this really doesn't do much to fix the issue
Are you also using docker desktop?
It seemed to me that my problems started with docker desktop 4.42, searching on Docker issues someone talked about problems with the resource saver, disabling it yesterday WSL did not crash all day.
Today an even more specific issue was created (docker/for-win#14827), try disabling the docker resource saver to see if WSL stops crashing.
Ciao
Reacted by Destiya, Chris Clapham, Ricky M, Imusing, Ching Yang and liam-ng
Reacted by Chris Clapham, Ricky M, Andreas Rappel, Genki, Imusing and Ching Yang
Grazie Riccardo Bessone (@bessone)! This seems to have fixed my issue with WSL which was hanging after a few minutes. Seeing your comment, it seems to have been whenever the resource saver started (5 mins).
Sounds like if WSL runs out of resources, it crashes. in that case you can give it more resources to see if it solves the issue:
notepad %UserProfile%\.wslconfig
Add the following lines to the .wslconfig file (adjusting the values based on your machine):
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=32GB
# Sets the VM to use two virtual processors
processors=16
# Sets amount of swap storage space to 8GB, default is 25% of available RAM
swap=16GB
# Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdx
# swapfile=C:\\temp\\wsl-swap.vhdx
Unfortunately that doesn't solve the problem. I am not really interested in improving the performance. When it works, it works fine, it just keeps crashing. 'less frequent' ≠ never, so this really doesn't do much to fix the issue
Are you also using docker desktop?
It seemed to me that my problems started with docker desktop 4.42, searching on Docker issues someone talked about problems with the resource saver, disabling it yesterday WSL did not crash all day.
Today an even more specific issue was created (docker/for-win#14827), try disabling the docker resource saver to see if WSL stops crashing.
Ciao
Thank you for sharing this. This was 100% my issue and turning off the Resource Saver fixed it for me. I wasn't even running any containers yet the resource saver was making WSL crash/hang for me.
Reacted by Chris Clapham, Andrey Tatarinov and Ching Yang
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Activity
mmichal3 commentedon Jun 25, 2022
I have this issue as well. Killing the WSL process from taskmanager recovers, but it does it again. Especially (but not only) after it comes back from sleep.
benhillis commentedon Jun 28, 2022
Looks like something is wrong with your trace, could you please collect a trace using these instructions?
/logs
benhillis commentedon Jun 28, 2022
Could you also share the output of
wsl.exe dmesg?Thanks!
berzi commentedon Aug 25, 2022
I'm not the original poster, but I'm having a similar issue: every
wslcommand hangs (includingwsl --shutdown), this causes problems with Docker, but because of the issues with WSL I can't even reinstall Docker itself (I initially thought it was a Docker issue but everything seems to point back to WSL).wsl.exe dmesgalso hangs so I can't post its output.I attached the logs from collect-wsl-logs.ps1:
WslLogs-2022-08-25_08-34-21.zip
CarlosRosuero commentedon Sep 13, 2022
Same problem here. Killing WSL from Task Manager solves the issue but is obviously not ideal.
pontusvision commentedon Sep 14, 2022
Same here; this just started happening in the last few days; Please re-open this MSFT!
georcon commentedon Sep 17, 2022
Same here. Need to terminate the process from task manager. This issue started after updated WSL to the Store version.
pernsdorff commentedon Sep 20, 2022
This should not have been closed - maybe the person went on vacation (7days?)
Happens often when attempting to switch folders using VSCode. Hangs -- generally just reboot to get back to working again for a while.
Heavy CPU from vmmemwsl
Windows ARM64

rstepinski commentedon Sep 20, 2022
Please reopen, this issue should not have been closed. This happens all the time, usually after waking the computer from sleep. Usually a simple
wsl --shutdownworked after a ~30s wait, but today even this method failed as allwslcommands hang indefinitely. I need to go into task manager and shut downvmwp.exe, as otherwise thevmmemprocess persists even if I kill allwslprocesses manually, and thewslcommands hang anyways.This problem is really frustrating as it forces me to restart Docker and all containers, as well as my IDE, which with large projects can take some time.
JPStrydom commentedon Sep 21, 2022
I was literally about to comment the same thing! This issues has been driving me CRAZY!!!
My wsl version is:
Please can we reopen and address this?
336 remaining items
utillity commentedon Jun 1, 2025
In my case WSL stopped working because the drive the .vhdx files are on was full. I solved it with these steps:
winget install --id JAMSoftware.TreeSize.Free) to find things to delete from the affected drivewsl --shutdownto inhibit WSL to start-up and lock the vhdx files%USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu.....\LocalState\ext4.vhdx)diskpart(in an administrative console), then execute these commands:after that
wsl --listworked again and I could access all my imagessurely-you-cannot-be-sirius commentedon Jun 9, 2025
I am facing a similar issue but it is not related to my PC going to sleep.
WSL2 will simply crash at random times, even when I am connected to WSL in VSCode.
A
wsl --shutdownwill fix the issue (until it inevitably happens again!) and I do not appreciate having to restart WSL, close and reopen my editors and restart Docker multiple times every day.wsl --updatetells me that I am on the most recent version of WSL.Is this something that is ever going to be investigated / fixed? It appears that this issue has been going on for almost 2 years now, with little to no support from Microsoft themselves.
bessone commentedon Jun 9, 2025
Same as me. it happens to me every day for a week or so, without having made any major changes on my part.
nik-55 commentedon Jun 9, 2025
U can try to optimize the performance of wsl -
These thing have make my wsl bit faster and those issues start coming less frequent
surely-you-cannot-be-sirius commentedon Jun 9, 2025
Unfortunately that doesn't solve the problem. I am not really interested in improving the performance. When it works, it works fine, it just keeps crashing. 'less frequent' ≠ never, so this really doesn't do much to fix the issue
bessone commentedon Jun 10, 2025
Are you also using docker desktop?
It seemed to me that my problems started with docker desktop 4.42, searching on Docker issues someone talked about problems with the resource saver, disabling it yesterday WSL did not crash all day.
Today an even more specific issue was created (docker/for-win#14827), try disabling the docker resource saver to see if WSL stops crashing.
Ciao
chrisclapham-eightcap commentedon Jun 10, 2025
Grazie Riccardo Bessone (@bessone)! This seems to have fixed my issue with WSL which was hanging after a few minutes. Seeing your comment, it seems to have been whenever the resource saver started (5 mins).
utillity commentedon Jun 11, 2025
Sounds like if WSL runs out of resources, it crashes. in that case you can give it more resources to see if it solves the issue:
notepad %UserProfile%\.wslconfigAdd the following lines to the .wslconfig file (adjusting the values based on your machine):
WowSuchRicky commentedon Jun 11, 2025
Thank you for sharing this. This was 100% my issue and turning off the Resource Saver fixed it for me. I wasn't even running any containers yet the resource saver was making WSL crash/hang for me.
utillity commentedon Jun 11, 2025
note that on that thread above there is now a new docker version that fixes the issue apparently:
bessone commentedon Jun 19, 2025
Just released Docker Desktop 4.42.1 (https://docs.docker.com/desktop/release-notes/)
In the changelog:
markbaydoun commentedon Jul 9, 2025
I still couldn't use WSL at all nor restart it, plus trying to stop the related tasks was denied. The only thing that actually worked is this: https://medium.com/nerd-for-tech/quick-notes-on-wsl2-stuck-a9b2c129443e
microsoft-github-policy-service commentedon Aug 13, 2026
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Thank you!
Genda1ph commentedon Aug 13, 2026
Duly noted. Micro$lop doesn't give two shits about WSL.