-
Notifications
You must be signed in to change notification settings - Fork 291
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
Docker v4.11.0 uses all RAM after a day #12877
Comments
I won't claim that this will fix it, but I have sometimes found success with CPU or RAM resource issues by rebooting the WSL backend with |
Can you check (using RamMap) if this is the same issue I've opened in the wsl repo? |
It certainly looks like it's the same issue, after letting Docker run for about 2 hours, in RamMap there are thousands of "wsl.exe" processes and counting. After running I also looked at ProcessHacker and it's doing the same thing, creating and closing wsl.exe instance every few seconds as you have stated in your issue.
Thank you for the suggestion, it sadly doesn't work, but atleast it frees up some RAM for computer to be usable again to turn off Docker and free the whole RAM |
I am also seeing this issue. Inspecting the status of the containers I have running, they are only reporting to consume ~2GB, but the RAM reported to be used in Docker desktop (the small stats on the main window) 8.9GB. I am having to restart docker multiple times a day to free memory. Only started happening after recent update to 4.11.1 |
Seeing same behavior as well on 4.11.1. I only identified Docker as the culprit recently but I feel like this happened before 4.11.0. I've had instability issues for a while and I always simply restarted to fix the issue. It could've been Docker the whole time. I'm going to switch back to using Hyper-V until this is addressed. |
I've got this issue too. I don't even have a dedicated machine for docker so this really hurts everything. I thought it was a different program so I reinstalled windows and just learned now that it is docker. Docker itself reports about 2 gigs being used (I limited docker to 5 gigs in my .wslconfig) but ends up using a little over 7. I'm on W10 using WSL2. Closing docker entirely frees all of that ram. EDIT: Switched to Hyper-V and this issue seems to be gone. I don't know what the performance difference is but I'm going to stay on H-V until this is confirmed to be solved. |
I had to stop using Docker 4.11.1 on Windows because of memory leakage. |
Same issue for me on 4.11.1. I have to quit docker desktop and run wsl --shutdown to free up my ram. Quitting docker only returns the 2 gigs that I've allotted for it. I've had to do this at least once a day since updating to 4.11.1. RamMap shows hundreds of wsl.exe processes. |
Thanks all for reporting! We can repro this and are investigating... |
Thanks to everyone for the detailed repro cases; we'll have a fix for this in the next release 🤗 |
Do we know when the next release that fixes this will be? this bug is causing all kinds of issues on my network currently! |
Docker 4.12 was released with no mention for a fix for this issue. I'll try and report back if it fixes this issue... https://docs.docker.com/desktop/release-notes/#docker-desktop-4120 |
I noticed the same thing, no mention of a bug fix related to this. I updated to 4.12 about 18 hours ago and so far I only see 3 instances of wsl.exe in RAMMap vs 1000+ I was seeing with 4.11.1 I'll keep an eye on it. |
Been running the lastest version 4.12 for a couple of days now and so far my RAM usage has been pretty stable, I'd say it's been fixed with this version |
Seems to be fixed with Docker for Windows v4.12 for me aswell. |
woooo 🥇 thank you for letting us know. |
Upgraded to 4.12. No memory/CPU problem yet. |
I have version 4.12 and today it used up all of the available memory. The only thing I know I might have done differently was that I set the computer to sleep when I went home. |
Still having this issue on 4.12 |
Sad to hear that some people are experiencing other RAM issues. The reason we were able to fix this issue is because the reporters posted diagnostics and detailed symptoms (which we really appreciated!). I've fixed enough perf issues on windows to know that they could have tons and tons of causes unrelated to Docker: a buggy anti-virus program, a misconfigured BIOS, etc, etc. If you're still experiencing RAM problems, we'll need you to file a new issue with diagnostics, or we really have no hope of being able to fix it. Thanks! |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Actual behavior
After a ~day, Docker uses the whole RAM going from 50% usage to 97% and lags the whole computer
Although it does not appear in Task manager as Docker Desktop using the RAM, after I close it, it goes down to 30% (checked 4 times before reporting)
Expected behavior
Using constantly the same amount of RAM
Information
Output of
& "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: