How to use ERL_MAX_PORTS and verify the setting in rabbitmq #9311
-
We are moving to UBI9 for rabbitmq version 3.12. We read in the rabbitmq docs that UBI9 changed the default open file handlers to a huge number. That creates problems within Erlang. As a result the amount of file handlers should be configured lower. By adjusting ERL_MAX_PORTS to a certain number we can handle this. Erlang Verison : 26.2 We have two questions related to this :
Can you please help us with the above queries? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
If this is in response for this blog post, note that you have other options of controlling the open file handle limit on Linux, and on modern systemd-based distributions specifically. |
Beta Was this translation helpful? Give feedback.
rabbitmq-diagnostics status
and/orrabbitmqctl eval 'erlang:system_info(port_limit).'
. Note that the limit will be set to the next power of 2, not to the exactERL_MAX_PORTS
value, so if set to 8191 it will actually be set to 8192, if set to 8193 it will actually be set to 16384, and so on