for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Docker for Mac using too much CPU

Open jakeonfire opened this issue 7 years ago • 46 comments

  • [x] I have tried with the latest version of my channel (Stable or Edge)
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: 15830610-550E-411F-8284-C3EC2FEFF231/20191121195019

Expected behavior

Docker for Mac does not use much CPU when no containers are running, for example when it has just started.

Actual behavior

Docker for Mac is using ~130% CPU while it should be idle.

Information

Issue started after a self-update and restart.

  • Docker Desktop (Community)
    • version: 2.1.0.5 (40693)
    • channel: stable
  • Engine version 19.03.5
  • macOS version: 10.15.1
  • Hardware:
    • MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports)
    • Processor: 2.8 Ghz Quad-Core Intel Core i7
    • Memory: 16GB

Diagnostic logs

Diagnose succeeded

Steps to reproduce the behavior

  1. Install Docker for Mac version 2.1.0.5
  2. Ensure it is started
  3. Open Activity Monitor -> CPU, and sort by CPU descending Docker should be near the top with ~130% CPU usage

jakeonfire avatar Nov 21 '19 20:11 jakeonfire

The same problem is happening here.

Diagnostics ID: CE4F2B69-1AEE-40DD-8C70-386969C454D4/20191123133335

fernandoacostateixeira avatar Nov 23 '19 13:11 fernandoacostateixeira

Same here

99141BD1-8E5C-4C53-B1F3-FCB7D3E37DC4/20191123161352

jimmycallin avatar Nov 23 '19 16:11 jimmycallin

Try this, it worked for me: https://github.com/docker/for-mac/issues/1759#issuecomment-558443657

I haven't looked into why this is happening but I'd advocate that the Docker for Mac dev team implements something that checks CPU usage. At the very least warn a user that CPU usage is higher than normal.

And if possible, it'd be awesome if they could figure out what the problem is.

marcelhageman avatar Nov 26 '19 22:11 marcelhageman

Same here EB72F696-3291-4640-BE44-532EE38FCD21/20191128105104

joshuatroy avatar Nov 28 '19 10:11 joshuatroy

Same here on MacBook Pro with Catalina. No containers running. Docker hogs 130% CPU, hyperkit is mostly idle. Version 2.1.0.5 Stable.

OktarinTentakel avatar Nov 29 '19 17:11 OktarinTentakel

Diagnose ID: 312E6835-8FE2-45BF-A874-0003DC9CEFF7/20191129170218

OktarinTentakel avatar Nov 29 '19 17:11 OktarinTentakel

My diagnose ID: 80E081FA-7763-4245-BB3F-15814B31E0BB/20191201085201

m8rge avatar Dec 01 '19 08:12 m8rge

Diagnostic ID: F9E0239B-07CF-4BDA-9718-537E3F764E1A/20191202052926

RZachLamberty avatar Dec 02 '19 05:12 RZachLamberty

Diagnostic ID: 09034906-334F-40D9-A4EF-1D1BD1B5E232/20191202074502

mullakhmetov avatar Dec 02 '19 07:12 mullakhmetov

Diagnostic ID: FD290642-0433-4FDE-81E5-8C63295B3E90/20191202084313

sokogen avatar Dec 02 '19 08:12 sokogen

I'm unable to start docker since upgrade to 2.1.0.5. It goes 100% CPU, even after complete reset.

galderz avatar Dec 04 '19 15:12 galderz

Diagnostic ID: 1E6CB8BB-2F34-42BE-A85E-4AB14D5532DB/20191205084502

RuudvdvNB avatar Dec 05 '19 08:12 RuudvdvNB

Confirming also unable to start containers since 2.1.0.5 Diagnostic ID: 0C701C05-F7F1-4F97-9F0E-AB472B90F04A/20191210222159

jasonHav avatar Dec 10 '19 22:12 jasonHav

Diagnostic ID: 9CDF0A91-1021-472B-B27A-EFBDF42CBDA1/20200109103236

ku1ik avatar Jan 09 '20 10:01 ku1ik

Diagnostic ID w/ Docker for Mac version 2.1.0.5 and macOS 10.15.2: DA642456-20A5-450F-BE3C-BE6A92B1BED9/20200114214500

schellj avatar Jan 14 '20 21:01 schellj

I suspect this behavior may be related to a macOS update/issue. I've installed each of the 2.1.0.x versions as well as 2.0.0.3 with the same issue of 100%+ CPU being used consistently by the Docker process (not com.docker.hyperkit) with no containers running and kubernetes disabled.

Diagnostic ID w/ Docker for Mac version 2.0.0.3 and macOS 10.15.2: DA642456-20A5-450F-BE3C-BE6A92B1BED9/20200114235510

schellj avatar Jan 15 '20 00:01 schellj

+1 Docker Desktop for Mac: 2.1.0.5 (40693) (stable) macOS: 10.15.1 Diagnostic ID: AB0464D5-E4AD-4460-83A1-2C1C5DB8559A/20200115165330

SunSparc avatar Jan 15 '20 17:01 SunSparc

Docker Desktop (Community) version: 2.1.7.0 (41561) channel: edge Engine version 19.03.5 macOS version: 10.15.2 Hardware: MacBook Pro (15-inch, 2017) Processor: 2.8 Ghz Quad-Core Intel Core i7 Memory: 16GB Diagnostic ID: B5F77A92-8BF6-41DF-81DD-D3DB123D8AD2/20200115192621

maewolfsky avatar Jan 15 '20 19:01 maewolfsky

Same symptoms happening here. Diagnostics ID D3089899-8A13-47E9-9809-62F235E41444/20200206130746.

I tried minimising Disk space (as suggested in https://github.com/docker/for-mac/issues/1759), but it did not help. I also tried to reduce the nr of CPUs used by docker, but it does not seem to help either.

What is interesting that I've only seen this on 13" MacbookPro (mid 2017), on a MacbookPro 15"(mid 2015) I've never seen this issue.

gergob avatar Feb 06 '20 13:02 gergob

Since I upgraded to Docker Desktop 2.2.0.0 all has been well.

SunSparc avatar Feb 06 '20 18:02 SunSparc