docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 287 forks source link

High CPU usage while Docker Desktop 4.7.1 (77678) is running on windows 11 #12710

Open MarcelRueedi opened 2 years ago

MarcelRueedi commented 2 years ago
frederikhors commented 2 years ago

Same here. This is serious. I need to restart Docker for desktop many times during a day. And I'm using only one container (postgresql) with .wslconfig file like this:

[wsl2] memory=1GB

I'm on Windows 10 21H2 x64, Docker for desktop 4.7.1 77678, downgraded from 4.8.1 which is even worse.

phucng commented 2 years ago

Have you referred to #12266? I tried to enable Docker Extensions (which I don't use any), and the CPU utilization goes down to 0-1%. I'm using 4.8.1 on Windows 11.

aliaugmenta commented 2 years ago

I have a similar problem with Docker Desktop 4.8.1 (78998) on Windows 10. Docker Desktop.exe uses almost 100% of a core. Docker Desktop Extensions.exe uses another 100% of a core too, while I have the extensions disabled!

frederikhors commented 2 years ago

Docker Desktop Extensions.exe uses another 100% of a core too, while I have the extensions disabled!

Same here!!

frederikhors commented 2 years ago

@aliaugmenta https://github.com/docker/for-win/issues/12266.

eduardocque commented 2 years ago

this stuck 1 of my CPU thread at 100% :S and this happen when i have selected check for updates automatically ? is probably that is trying to perform several requests or something

with or without that option is happening 1 thread cpu 100%

laurazard commented 2 years ago

Hi @MarcelRueedi, thanks for reporting this.

We are preparing a 4.8.2 release. We have:

Would you mind checking them out and seeing if the issue is addressed? Thank you!

MarcelRueedi commented 2 years ago

I installed the 4.8.2 RC for Windows. But the issue is still there - a docker task that uses 100% of a CPU to generate heat. Even when now container is started.

aliaugmenta commented 2 years ago

Enabling Docker Extensions and Disabling "Automatic Check for Updates" fixed my cpu usage problem on Docker Desktop 4.8.1.

eduardocque commented 2 years ago

@laurazard i remember in other thread that was related to an exception internally making this an infinite loop in a sub-process probably, or can be related to auto-update and that option "Automatic Check for Updates"

frederikhors commented 2 years ago

Can the team please release two versions? One for docker only (with no other things, with no gui at all) and the other with all these features?

docker-robott commented 2 years ago

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

frederikhors commented 2 years ago

/lifecycle frozen

tomasfejfar commented 1 year ago

I have the same problem with 4.15.0 :(

This does seem to fix it for the moment though...

Enabling Docker Extensions and Disabling "Automatic Check for Updates" fixed my cpu usage problem on Docker Desktop 4.8.1.

image

tomasfejfar commented 1 year ago

OK, I was too fast to dismiss it. It's back, even with completely fresh docker installation. How do I debug this? It's not the Vmmem, nor system. It's the UI itself, that's eating the CPU.

jd1378 commented 2 months ago

In my case Vmmem suddenly goes up to 100% and docker desktop freezes (it has no containers running, and in idle mode) I still have not figured what causes the issue (it seems random) I have to shutdown wsl to stop it