-
Notifications
You must be signed in to change notification settings - Fork 122
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
High CPU utilisation for 'com.docker.hyperkit' process #82
Comments
I'm facing a similar issue. I did see a warning when my machine woke up from sleep that it's a known bug in Yosemite though. Oh and I'm obviously running Yosemite. Edit- Just FYI, I upgraded to El Capitan 10.11.6 and don't see the issue anymore |
@shri3k - thanks for chiming in. I'm on El Capitan, the latest patch release |
I'm getting 170% CPU load when I build a new image and I should also mention that the files I'm
|
This is also reproducible on OS X 10.11.5 running Docker 1.12.0. We're running a JavaScript web app and we only see this error if we attempt to run |
Same here.. My mac was suddenly blowing a lot of hot air. Docker was unresponsive, and it started happening without anyone using the mac for some hours. |
Hi all, I had some problems here running my app inside docker. I use node as base image, use volume to share my app code between machines, launch app with nodemon to watch 800 files. With nodemon and without volumes the CPU usage decrease. So the combination between these two "shits" needs to be solve. My solution: increase the polling-interval of nodemon. By default it has a polling interval of 100ms. |
@dmechas where can I configure startup options of |
@dmechas your issue seems unrelated to the original issue, as it is about performance of large numbers of file watches with |
Likewise on OSX 10.10.5, CPU utilization is maxing out all cores. Same process and scenario as op. |
I had a similar issue when using When I moved to Docker for Mac a couple of days ago, I started noticing the same thing. Sure enough,
Hope that helps! |
@BRWR Any idea why following your instructions should help? I don't see the connection between a mount and high CPU. Thanks. |
My understanding is that the high CPU is a result of trying to sync too many files at the same time. Mounting folders like |
It seems this doesn't actually solve the problem. Even after unmaintained On Sep 20, 2016 5:48 PM, "Mark Petrovic" notifications@github.com wrote:
|
I run a drupal 7 installation via docker. It is a very big website with tones of php files. To generate the Website it loads a lot of the files. My Mac blows itself to the hell. |
Just wanted to say that I observe the same issue
|
For those who experience high CPU because of FS events (like me, see above). @justincormack I agree with your earlier statement, I doubt this is the fault of docker. It is, however, a noticeable change from using I resolved my particular issue by disabling polling on webpack and removing I'd suggest inspecting your config to ensure polling strategies are disabled in lieu of FS events. |
Yes, I would definitely avoid polling. Making notifications work has been something we have spent a lot of time on, so you do not have to use inefficient polling. |
I'm experiencing the same issue.
|
I'm also experiencing this issue.
I'm using docker-compose to run a basic WordPress config, doing actions within it is super slow. Note: this does not occur on a linux VPS that i'm running. Please let me know if I can do anything to help. |
I have this issue as well. Any container with Grunt watching mounted files will cause the CPU to run amok. I suspect it's related to the fact that the files are being watched by both Grunt and Docker, concurrently. OS X 10.11.6 |
What @mathiaslm89 says is interesting. As I said I observe the same problem and I have a similar situation, where a container is watching the same files as my IDE. This might be nothing, but I suppose it couldn't hurt to mention it. Maybe it is a factor. |
If you are seeing increased CPU utilization while running programs that 'watch' files on shared directories, you are not experiencing the same issue as the original poster in this thread. Many popular file system monitoring applications do not actually use the asynchronous event APIs of the platform they run on -- See this previous comment in which it is suggested that, whatever file system watching system you are using, you ensure that it is not polling large numbers of files at high frequency and instead uses To reiterate, this issue is about the case where the Thanks! |
Thank you @dsheets for clearing this up. I'll take back my addition then, as the IDE I am using is in fact utilizing inotify to watch files. |
Two days ago I switched from the beta to Docker for Mac 1.12, and got this same problem, which occurs on every build. |
I just ran into the same issue with the latest Docker for Mac beta (1.12.2-beta28 (12906)) I ran the diagnosis to see if that comes up with anything, but it appears to fail: Docker seems to be completely stuck when I try to issue any command through the CLI. Force-killing the hypervisor process seems to recover from the situation. |
Having a similar problem myself and being relatively intolerant of GUI-based intervention, I've found that pkill-ing docker at the command line provides a seamless restart of the Docker engine and associated processes. If you run There's a hearty YMMV here, though! |
Same problem on Mac OS X "El Capitan" 10.11.6 - com.docker.hyperkit is draining my battery by using 100% cpu. Shutting Docker down via icon in menu bar did not work - I had to force-quit the process. I'm using Docker Version 1.12.1 (build: 12133) |
I had the same issue and used my macbook as a heating in the last days. I'm using a webpack container which is running in docker. In my
and in the |
@adammolnar are you using just a regular MacBook or a MacBook pro? I'm more curious to see how docker for mac performs on a Macbook as i'm considering it for my next purchase. |
For the same containers, Docker use 200% CPU on my Mac, as opposed to 99% CPU when running through VBox. macOS 10.12.1 (16B2555) $ docker -v
Docker version 1.12.1, build 6f9534c |
All, To reiterate and expand upon @dsheets' earlier comment there are many possible reasons why each of you may be seeing high CPU usage, ranging from macOS kernel bugs (in 10.10.x and early 10.11.x in particular) to the use of polling within container (e.g. build systems for various languages) to potential Docker for Mac bugs or inefficiencies. Many of the subsequent comments share little in common with the original report or indeed each other but lack the necessary diagnostic IDs and descriptions of use cases which would enable us to identify what is going on. So I am going to close and lock this issue. For anyone who is seeing high CPU usage please create a fresh ticket including details of your own specific environment and use case, possible reproduction steps and a diagnostic upload. The easiest way to do this is via the "Diagnostics and Feedback" item in the whale menu and filling in the template with the details. @cmacrae I'm very sorry that in amongst it all we do not appear to have actually looked at your original issue in any detail. When I come to do so now I find that your diagnostic tarball is not present on our servers for some reason. Since this ticket seems to have become rather unfocused would you mind uploading a new one with a new issue to go with it (assuming you can still reproduce)? I'm very sorry for the inconvenience and the long delay in getting to your issue. |
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. |
Expected behaviour
Docker for Mac should launch as it has previously and not start consuming high amounts of CPU resources, even when "idle".
Actual behaviour
Starting Docker for Mac spawns a process 'com.docker.hyperkit' that immediately starts hogging CPU resources. Even when "idle" (i.e: no containers are running, and/or no interaction with docker at all).
Information
5324838F-D30E-435A-995B-48D8B2B150B2
The text was updated successfully, but these errors were encountered: