-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Containers become unresponsive due to "too many connections" #1009
Comments
By default Docker for Mac limits the number of file descriptors it opens to avoid hitting macOS system-wide limits. The current default maximum number of connections is set to 900 (which is perhaps a bit low). It can be updated like this:
At this point you should see a notice in the logs like this:
I recommend checking the values of these sysctls:
I believe this means I could bump my I guess that in your case, if you're running half of your system inside docker and half natively on the host you could give half of the descriptors to docker and keep the other half (plus a bit more, for email, web etc) for the native processes. If you do play with the |
Thanks @djs55, that appears to work! |
@dancannon thanks for the update. I'm closing this for now. |
- Out of disk space when writing to qcow2 (docker#1365) - Hyperkit MTU assertion (docker#1228) - Too many connections in Vpnkit (docker#1009) Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
@djs55 , I have such error:
Mac: 10.13.1 (17B1003) |
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
Applications remain accessible even when running many containers
Actual behaviour
After starting many services which create connections to the containers the containers become unresponsive and docker starts logging "too many connections" errors.
Information
We use docker for mac to run parts of our development environment (this includes various databases and message queues, processes outside of docker connect to these containers). Recently as we have created more services we noticed that if we run all of our services the docker containers become unresponsive, after some investigation we noticed that docker is reporting "too many connections" however we could not find anyway to increase the connection limit.
We noticed these errors after we start around 145 services while running 6 containers.
Diagnostic ID: FA8036A9-1DA0-4241-BA04-A87CB52C794B
Steps to reproduce the behaviour
The text was updated successfully, but these errors were encountered: