-
Notifications
You must be signed in to change notification settings - Fork 512
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
rabbitmq takes forever to start, fails, and still eats 100% CPU after started, if ulimit -n set to a high value #491
Comments
Hi, I understand thtat this issue is reported as workaround for a problem you've got But shouldn't this issue also be reported to RabbittMQ developers? seems they got some problems with big ulimit limits? |
Good point, but after some more digging I found this: docker-library/rabbitmq#545 |
@t-lo Thanks for finding it We use ubuntu as our base image, so I think it will take time until ubuntu will serve the version with the fix |
Might be worth considering setting |
Thanks for this idea I've create issue 58989 in our private issue tracker Not sure if we will implement that, but at least we discuss it |
I took a stab on this, see #492. |
@t-lo Ok thanks, I'll notifiy our developers team |
No release date yet. |
As workaround I defined ulimits in the docker-compose file: ulimits:
nofile: 65536 |
Hello @t-lo, as far as I can see the problem is solved, can we close it? |
I've realised that the OnlyOffice development server has been installed on my laptop for over a year and it must have been taking up a whole CPU core in the background the whole time! No wonder my battery life has been bad and my fan has been loud... After getting rid of it my idle CPU temperature dropped from 70°C to 40°C and my fan is far quieter where before it would run constantly |
If it's resolved I'll close the issue. Feel free to comment or reopen it if you got further questions. |
Do you want to request a feature or report a bug?
This is a bug report which includes a workaround (see below). Motivation for filing this issue is to share this workaround (which has cost me quite a bit of debugging time) with other affected users.
What is the current behavior?
When
ulimit -n
inside the document server container is set to a high value (depending on the on docker config) it takes multiple minutes to start, hanging atStarting RabbitMQ Messaging Server rabbitmq-server
- which eventually fails - though the container continues to run. After that, a process (or thread?)erl_child_setup
consumes 100% of a single CPU, and keeps running forever. The document server container is not usable at this point (health endpoint returns 502) because rabbitmq never started successfully.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
ulimit -n
is set to a high value inside of the onlyoffice containerhost $ docker run -ti --entrypoint /bin/bash onlyoffice/documentserver container $ ulimit -n 1073741816
htop
on the host (which also shows container namespaced processes): showsstart-stop-daemon [...] redis-server
stuck for multiple minutes, consuming 100% CPU; thenerl_child_setup
doing the same.What is the expected behavior?
ulimit -n
setting inside of containerDid this work in previous versions of DocumentServer?
Yes, but I'm unsure when it stopped working.
DocumentServer Docker tag:
Host Operating System:
Fedora 36 w/ docker version 20.10.17, build 100c701
Workaround
Set
ulimit
forNOFILE
to a lower value, either individually for the documentserver container or globally for all containers.Individually: add (e.g.)
--ulimit nofile=65536:65536
to the docker command line, orto your service configuration YAML for docker-compose.
Globally: Add
--default-ulimit nofile=65536:65536
to the dockerd command line.The text was updated successfully, but these errors were encountered: