File descriptor use monitoring #11781
-
Describe the bugThe file descriptor metric reported by From our investigation (cmiiw), it looks like both Here's the snap from our simple test earlier (see reproduction steps below):
Reproduction steps
Expected behavior
Additional contextOS: Oracle Linux 9.3 using Redhat compatible kernel
Tested RabbitMQ versions:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
It is an OS-level metric and should be monitored outside of RabbitMQ. |
Beta Was this translation helpful? Give feedback.
-
There already are, because in 3.13 surpassing the limit triggers a resource alarm. However, a log message won't be enough. What you really need is OS-level monitoring of file handles with alerts. RabbitMQ is not particularly special when it comes to FD and socket file handle use, so any external monitoring tool can monitor those metrics just like it could monitor any other process. |
Beta Was this translation helpful? Give feedback.
-
Finally, there are per-virtual host guardrails for environments where applications are known (or can be expected to) leak connections or queues. |
Beta Was this translation helpful? Give feedback.
file_handle_cache
was removed from RabbitMQ for 4.0. We don't want every single component in RabbitMQ to depend on FHC, and FHC has its own issues that you are likely unaware of.It is an OS-level metric and should be monitored outside of RabbitMQ.