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

Memory Leakage com.docker.hyperkit #3232

Open
Sebastianbrg opened this Issue Sep 25, 2018 · 121 comments

Comments

Projects
None yet
@Sebastianbrg
Copy link

Sebastianbrg commented Sep 25, 2018

  • [ x ] I have tried with the latest version of my channel (Stable or Edge)
  • [ x ] I have uploaded Diagnostics
  • Diagnostics ID:
    C19AE3AD-3E52-4F8C-A16A-D06D797B36A4/20180925100823

Expected behavior

No memory leakage.

Actual behavior

Memory leakage.

Information

  • Is it reproducible? Yes. Just start Docker on Mac OS Mojave
  • Is the problem new? Yes, when I upgraded to Mac OS Mojave
  • Did the problem appear with an update?
  • A reproducible case if this is a bug, Dockerfiles FTW.
  • macOS Version: 10.14 (18A391)

Diagnostic logs

Docker for Mac: Version 18.06.1-ce-mac73 (26764)
@lou-lan

This comment has been minimized.

Copy link

lou-lan commented Sep 25, 2018

I also get a memory leak

@sickness29

This comment has been minimized.

Copy link

sickness29 commented Sep 26, 2018

Me too

@EduardRakov

This comment has been minimized.

Copy link

EduardRakov commented Sep 26, 2018

and me too :( also com.docker.hyperkit loads CPU very much

@Zabudska-Yuliia

This comment has been minimized.

Copy link

Zabudska-Yuliia commented Sep 28, 2018

Me too

@iMerica

This comment has been minimized.

Copy link

iMerica commented Sep 28, 2018

See #178.

@vfontes

This comment has been minimized.

Copy link

vfontes commented Sep 28, 2018

Also happening for me. Running on macOS High Sierra 10.13.6.

Docker version 18.06.1-ce, build e68fc7a

@gvbkr

This comment has been minimized.

Copy link

gvbkr commented Sep 30, 2018

Yes this is happening on macOS High Sierra 10.13.6.

Docker version Version 18.06.1-ce-mac73 (26764)

This started happening after I updated the Docker version.

@ylor

This comment has been minimized.

Copy link

ylor commented Oct 1, 2018

Seeing the same thing.

2.83GB being used without anything running.

Docker version 18.06.1-ce, build e68fc7a

@AnielloFalcone

This comment has been minimized.

Copy link

AnielloFalcone commented Oct 1, 2018

4.77Gb with no images and no containers on:
macOS: 10.14.1 Beta (18B45d),
Docker: 2.0.0.0-beta1-mac75 (27117),
Engine: 18.09.0-ce-beta1

@mkohlmyr

This comment has been minimized.

Copy link

mkohlmyr commented Oct 1, 2018

Mac OS High Sierra 10.13.4
Docker 18.03.1-ce

Regularly consumes ~1.5GB while completely idle after startup.

@ghost

This comment has been minimized.

Copy link

ghost commented Oct 1, 2018

[ x ] I have tried with the latest version of my channel (Stable or Edge)
[ x ] I have uploaded Diagnostics
Diagnostics ID: 01B9140E-D975-46AE-AEA6-442DC281FAE0/20181001181235
Expected behavior: Low memory use
Actual behavior: Doing nothing and consuming 5Gb of memory, it is also reported as the highest energy consumer on my system.

Information
Is it reproducible? Yes. Just start Docker on Mac OS Mojave
Is the problem new? Don't know, never used it on a different version
Did the problem appear with an update? Don't know, never used it on a different version.

MacOS 14 (18A391)
Docker Community Edition 18.06.1-ce-mac73 (26764)

Hope this helps.

@gauravthadani

This comment has been minimized.

Copy link

gauravthadani commented Oct 3, 2018

Likewise, noticing this after the os upgrade to mojave.
does the update fix the issue? I couldn't figure out from the commits

@asburymr

This comment has been minimized.

Copy link

asburymr commented Oct 3, 2018

I have run into the same issue. Below are the specifics of my environment. This is with no containers running and a fresh restart.

image

image

image

@asburymr

This comment has been minimized.

Copy link

asburymr commented Oct 3, 2018

An interesting data point may be that increasing the SWAP seems to dramatically affect the Memory consumed by the hyperkit.

512MB SWAP -> 2GB of memory

image

1GB SWAP -> 3 GB Memory

image

2 GB SWAP -> 5 GB Memory

image

@alvarobem

This comment has been minimized.

Copy link

alvarobem commented Oct 3, 2018

I have the same issue

@wskinner-eml

This comment has been minimized.

Copy link

wskinner-eml commented Oct 3, 2018

Same here. With a container running, com.docker.hyperkit used over 9GB of memory. After a restart, with no containers running, it immediately jumped up to 5.23 GB.
Docker version: 18.06.1-ce-mac73 (26764)
Docker memory limit: 12GB
Docker Swap limit: 4.0GB

I was also able to reproduce the effect @asburymr noticed. When I reduced the swap limit to 512MB, hyperkit went down to under 2GB RAM.

@andypan104

This comment has been minimized.

Copy link

andypan104 commented Oct 4, 2018

Same issue.

@imuller

This comment has been minimized.

Copy link

imuller commented Oct 4, 2018

Same issue here with version 18.06.1-ce-mac73, using almost 3 GB memory after startup of my mac with Mojave (10.14)

@TedSpinks

This comment has been minimized.

Copy link

TedSpinks commented Oct 4, 2018

I have this issue with High Sierra 10.13.6 and Docker version 18.06.1-ce-mac73 (26764). com.docker.hyperkit consumes 1.6GB with no containers and 1GB swap. 800MB with no containers and 512MB swap.

Running a container causes com.docker.hyperkit to consume 50-60MB while it is running, but it releases the 50-60MB as soon as the container stops.

@rurkss

This comment has been minimized.

Copy link

rurkss commented Oct 5, 2018

2018-10-05 13 26 48
same here, on mac

@bradrich

This comment has been minimized.

Copy link

bradrich commented Oct 5, 2018

Upgrading to the Edge release seems to alleviate the problem. The below screenshot is with a set of containers running.

screenshot 2018-10-05 10 49 43

@TedSpinks

This comment has been minimized.

Copy link

TedSpinks commented Oct 5, 2018

@bradrich what does your memory look like after you stop those containers?

@bradrich

This comment has been minimized.

Copy link

bradrich commented Oct 5, 2018

@TedSpinks If there are no containers running, it is a little better, but not perfect.

screenshot 2018-10-05 10 27 04

@ylor

This comment has been minimized.

Copy link

ylor commented Oct 6, 2018

I had to give up and create a Linux VM inside of Parallels to be my Docker host. It uses less energy and memory than Docker. As a bonus it allows for --net=host.

It's an unfortunate state of affairs, but until Docker for Mac improves it's honestly the best way to go.

@Khan745

This comment has been minimized.

Copy link

Khan745 commented Oct 6, 2018

Me too
OS: macOS Mojave (10.14)
Docker 18.06.1-ce-mac73 (26764)
EEAD09C8-BC82-4E6E-993E-F4BBB220B93B/20181104225806

@florentin

This comment has been minimized.

Copy link

florentin commented Oct 7, 2018

Same issue here, Docker Version 18.06.1-ce-mac73 (26764) on Mohave 10.14 (18A391)
com.docker.hyperkit takes 3.69GiB without any container running
Docker settings: swap 512MiB, CPUS: 4, Memory: 6GiB
Increasing the swap value automatically increases the hyperkit's memory
For a swap setting of 1.0 GiB the hyperkit takes 4.69 GiB of system's memory.

For the Edge version (Version 2.0.0.0-beta1-mac75 (27117)
hyperkit: 2.91 GiB for the Docker settings: 4 cpus, 6GiB ram and 1GiB swap

@ybod

This comment has been minimized.

Copy link

ybod commented Dec 18, 2018

I'm also on Mojave running Docker Version 2.0.0.0-mac82 (29268) and have the same issue (3.77 Gb)

@shmink

This comment has been minimized.

Copy link

shmink commented Dec 18, 2018

It would be nice if someone from docker could drop in to let us know they're on the case or something...

@heihachi88

This comment has been minimized.

Copy link

heihachi88 commented Dec 18, 2018

I just lowered ram and swap dedicated to docker (to minimum).

@robabby

This comment has been minimized.

Copy link

robabby commented Dec 18, 2018

Upgraded to Mojave over the weekend and started experiencing this issue today. Really makes work a chore. Would love to avoid downgrading.

@williamconnolly

This comment has been minimized.

Copy link

williamconnolly commented Dec 19, 2018

Same issue on Mojave as well, version 2.0.0.0-mac81 (29211). I've actually downgraded, and am still experiencing the same memory usage on version 18.06.0-ce-mac70! I exported all containers and imported them again, after uninstalling the Docker app itself.

I did not muck around with any ~/Library or cache directories, however. So it seems to me that downgrading has no effect, unfortunately.

The memory usage seems to follow a pattern: max memory + max swap + all container's actual usage put together. It's as if Docker reserves all the space, then doesn't actually use any of it.

@d1820

This comment has been minimized.

Copy link

d1820 commented Dec 22, 2018

same issue, with was right after restarted docker...

1gb swap
3gb max

image

image

image

@laszlo-laszlo

This comment has been minimized.

Copy link

laszlo-laszlo commented Dec 23, 2018

I have the same issue.
macOS 10.14.2
Docker version 18.09.0, build 4d60db4
Experimental function: Off
CPUs: 4
Memory: 4GB
SWAP: 1GB

@pamtrak06

This comment has been minimized.

Copy link

pamtrak06 commented Dec 27, 2018

I upgrade to Mojave and then I have the same issue (3 gb of memory usage !).
macOS 10.14.2 - Docker version 18.03.0, build 4d60db4

I solve it by removing docker for Mac and install docker toolbox

@YevgenK

This comment has been minimized.

Copy link

YevgenK commented Dec 28, 2018

Same issue.
This ticker has been exists more than 4 months, why nobody cares about this?

@Dyalius

This comment has been minimized.

Copy link

Dyalius commented Dec 30, 2018

Same issue here, please fix

@alihhussain

This comment has been minimized.

Copy link

alihhussain commented Dec 31, 2018

same here. Please fix

@a-dubiel

This comment has been minimized.

Copy link

a-dubiel commented Jan 3, 2019

Docker 18.09.0
OSX 10.14.2 (Mojave)

Turns out brand new Macbook Pro comes with hairdryer function.

@purepear

This comment has been minimized.

Copy link

purepear commented Jan 8, 2019

MacOS 10.14.2
Version 2.0.0.0-mac81 (29211)

Fresh installation no containers
Memory: 2GB
Swap: 1GB

It takes ~3GB RAM ?!

Any official info?

@Jonatthu

This comment has been minimized.

Copy link

Jonatthu commented Jan 8, 2019

This is happening to me too on mac Mojave
3gb of ram...

@DJFliX

This comment has been minimized.

Copy link

DJFliX commented Jan 10, 2019

MacOS 10.14.2
2.0.0.0-mac81 (29211) (stable)

3CPU/1.5GB RAM/512MB Swap
No containers

Usage from Activity monitor:

  • Memory: 2.71GB
  • Real Memory: 1.26GB
@xcono

This comment has been minimized.

Copy link

xcono commented Jan 10, 2019

MacOS 10.14.2

image

@panosangelopoulos

This comment has been minimized.

Copy link

panosangelopoulos commented Jan 10, 2019

Same here.

MacOS 10.14.2
Docker Desktop Version 2.0.0.0-mac81

image

@kamil-jakubowski

This comment has been minimized.

Copy link

kamil-jakubowski commented Jan 11, 2019

Same here

@tom-rethink

This comment has been minimized.

Copy link

tom-rethink commented Jan 11, 2019

Same here with over 4 gigs used by com.docker.hyperkit. I'm not doing anything special or weird.

@AlmogCohen

This comment has been minimized.

Copy link

AlmogCohen commented Jan 11, 2019

same here

@kaspernj

This comment has been minimized.

Copy link

kaspernj commented Jan 15, 2019

Same here. I have set memory to 5 GB and often hit 9.

@seagle0128

This comment has been minimized.

Copy link

seagle0128 commented Jan 15, 2019

Same issue here. 2GB limit but hit 3.4GB.

@EwanValentine

This comment has been minimized.

Copy link

EwanValentine commented Jan 15, 2019

Same!! Unusable at the moment after doing an update today.

@rubenjimenez

This comment has been minimized.

Copy link

rubenjimenez commented Jan 15, 2019

Same here. 3,80GB with no containers running.

@kimcavalcanti

This comment has been minimized.

Copy link

kimcavalcanti commented Jan 16, 2019

same here w/o containers

@mhaber-tophat

This comment has been minimized.

Copy link

mhaber-tophat commented Jan 16, 2019

Macos 10.14
Docker 2.0.0.0-mac82 (29268)

"Real memory Size" stays within the limit set by docker but there appears to be a leak elsewhere (virtual memory grows indefinitely as the number calculated in the "Memory" Column in Activity Monitor grows for com.docker.hyperkit).

screen shot 2019-01-16 at 11 47 51 am

@msanchez-eutech

This comment has been minimized.

Copy link

msanchez-eutech commented Jan 21, 2019

I also have the same problem and this is a major problem for our team, we have some people with 8gb ram and we had to make them stop using docker and revert to old "one server for all devs" system which is... meh.

@seagle0128

This comment has been minimized.

Copy link

seagle0128 commented Jan 21, 2019

Any update for this issue? Is it still alive?

@al-indigo

This comment has been minimized.

Copy link

al-indigo commented Jan 21, 2019

Same behaviour (leaks up to 60Gb RAM of 64 available and then stucks):

Mac OS High Sierra 10.13.6 (17G4015)
Version 2.0.0.2 (30215)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment