/
Too many open files
Too many open files
Observation
The hivemq.log
shows statements like the following:
Consequence
The impact of this is severe.
From Wikipedia (https://en.wikipedia.org/wiki/File_descriptor)
In Unix and related computer operating systems, a file descriptor (FD, less frequently fildes) is an abstract indicator (handle) used to access a file or other input/output resource, such as a pipe or network socket.
The most immediate impact this will have for HiveMQ is that the broker cannot accept any additional connection, as there are not file descriptors for network sockets left.
This might also impact the ability to write log files or replicate data.
Solution
Increase the open file limit in your system.
Add the following lines to the /etc/security/limits.conf
file:
hivemq hard nofile 1000000
hivemq soft nofile 1000000
root hard nofile 1000000
root soft nofile 1000000
This blog post add some context.
, multiple selections available,
Related content
Control Center User Permissions not working correctly
Control Center User Permissions not working correctly
Read with this
Systemd <=240 version defaults Max open files to 65535
Systemd <=240 version defaults Max open files to 65535
More like this
HiveMQ Kubernetes Operator UPGRADE FAILED: post-upgrade hooks failed: job failed
HiveMQ Kubernetes Operator UPGRADE FAILED: post-upgrade hooks failed: job failed
Read with this
Get information about file descriptors used by system
Get information about file descriptors used by system
More like this
Client Event History performance decreases over time
Client Event History performance decreases over time
Read with this
“Not Enough Disk Space” Warning in the HiveMQ Control Center
“Not Enough Disk Space” Warning in the HiveMQ Control Center
More like this