-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL Becomes Non Responsive, Uses High Amounts Of CPU & Memory #9429
Comments
same problem. I use Vscode, Docker Desktop and run containers for lamp development. |
I have the same problem, this seems to happen after my computer goes to sleep and I leave WSL running. I do what @cristianpuddu does to mitigate it |
similar to this #9383 except in my case disk usage balloons up and as soon as I force stop my react app, WSL becomes responsive again. |
Unfortunately for me |
hmmm, I do put my PC in hibernate, sometimes multiples times a day, so maybe that has something to do with it. |
Just like @ThatRex, I also hibernated my PC fairly regularly, however this never led to any non-responsiveness until around last week, when my Ubuntu 18.04 image started prompting me to run So it's probably something to do with that recent WSL update. |
@ThatRex What I typically do is force quit WSL and run this command in PowerShell |
I'm constantly running into this problem, using Jetbrains Gateway. When
does not work anymore and hangs itself, I use
But now, after I did this, Jetbrains Gateway does not work anymore at all for one of my projects where the freeze happened, even after re-installation. There is also this issue with a lot of active comments, that has been closed for whatever reason! |
Same here.
I hibernate the PC every day at the end of my work day, so maybe that's linked with the fact I had a Ubuntu WSL tab open in Windows Terminal? Restarting the LxssManager doesn't help. Can't restart |
i did other tests, in my case the problem seems to occur only when i use vscode. |
Try my steps: #8725 (comment) |
Same problem, also hibernating (nowadays, who shuts down a computer anyway if you not have to, i.e. win update or some installation). We use rancher desktop with wsl and we constantly need to restart wsl and wait for all kubernetes pods to spin up again when this problem occurs. This is pretty annoying and seems to have started with some latest windows update. |
Just dropping in from #8696 which has 150+ comments and still no official response. |
Thanks everyone for all the info. We have introduced a new feature to diagnose issue like this in wsl 1.1.0: We have a couple theories on what the root cause of this could be, but we need more information from a live repro to move forward. Instructions:
Note: The debug shell is not user friendly. By design it doesn't use an hvsocket relay like the other shells, but a named pipe. That means that it should work even if the service is completely crashed, as long as the VM is still running. Sometimes the prompt doesn't show, if that's the case, pressing 'return' should be enough to display it. If the VM is completely crashed, the debug-shell will just remain empty. If that's the case, please capture a dump of the wsl.exe --debug-shell process and share it here |
@OneBlue I followed your instructions above. My DMP File is too big to be shared here (only 25 MB allowed). You can download it here: https://bitbit.de/wslservice.zip |
Thank you @alex-reach. Can you also share the script's output ? We need both the script output and the .dmp file to investigate this issue |
@OneBlue Sure, I attached the script output now |
Thanks a lot @alex-reach. Pasting my answer from the other issue to get more information: With this we can see that the issue appears to be related to virtio (since that's where the guest is stuck). We need to dig deeper to understand why things are stuck here though, let's gather more information. Can you please: Repeat the same steps as before to get wsl hung and share the wslservice.exe dump and the script output again Image Name PID Modules To summarize, we need: The output of the script I shared #8696 (comment) |
@OneBlue Sure, here we go: You can download everything here: https://www.bitbit.de/wsl-debug.zip But I have no "wmwpWSL.exe" running .. |
Just redirected here from #8529 |
For me this seems to happen when my build context is over 24mb (despite 64GB ram, 16GB Swap & 128GB SSD space) -- I suspect, thought I'm not sure how to validate that the build kit is hitting a recurssion issue w/ symlinks in the build dir and isn't exiting properly -- I think as my build context gets larger I loose insight into the dir structure so I've been conflating the two issues -- if I have time I'll create a minimal example w/ a recursive symlink build context and see if it causes a hang |
Thank you @alex-reach. This is really interesting because your repro is a bit different from the one in #8696. In your case, dllhost.exe is still there after resuming from hibernation, but it doesn't seem to be notified properly.
|
@OneBlue Thanks for your feedback. I had to revert in the meantime to WSL 1.0.3.0, because I had issues with the Apache Service stopping to respond frequently in the preview WSL 1.1.0.0. I will install the preview again in a few days to send you a new log collection. |
@OneBlue I repeated all your steps and collected logs and dumps. My steps to reproduce:
-> LOGS Doesn't have
|
This happens to me daily, for me it seems to be excessive interrupts from Hyper-V?
Perf:
And to compare to normal behaviour:
|
+1 |
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! |
Version
Version 10.0.19044.2364
WSL Version
Kernel Version
5.15.79.1-microsoft-standard-WSL2
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
Expected Behavior
To not become non responsive and use up high amounts of CPU and memory after a period of time.
Actual Behavior
WLS becomes non responsive and use up high amounts of CPU and memory after a period of time. When this happens I am unable use or interact with WSL and the WSL CLI. In order to restart WSL I have to restart my PC. Before restricting the amount of CPU and Memory in the WSL config it would make my whole system lag out.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: