Closed coffee-squirrel closed 7 years ago
Installation of the RPM should result in the same file descriptor limit being used as other packages (see e8e0549ed514d29b31e0f2d573a13ef5d5290a13).
The default file descriptor limit (4096 in my case) is used when the RPM is used for Graylog Server installation.
Add ulimit -n 64000 inside the start function (before the daemon call) in "fpm-recipes/recipes/graylog-server/files/rpm/init.d".
ulimit -n 64000
start
daemon
graylog-server
sudo cat /proc/graylog_server_PID/limits
We were seeing "Too many open files" in the Graylog Server "server.log" and wanted to increase the limit to rule that out.
This will be fixed in the upcoming Graylog 2.1 release. Thank you for the report!
Expected Behavior
Installation of the RPM should result in the same file descriptor limit being used as other packages (see e8e0549ed514d29b31e0f2d573a13ef5d5290a13).
Current Behavior
The default file descriptor limit (4096 in my case) is used when the RPM is used for Graylog Server installation.
Possible Solution
Add
ulimit -n 64000
inside thestart
function (before thedaemon
call) in "fpm-recipes/recipes/graylog-server/files/rpm/init.d".Steps to Reproduce (for bugs)
graylog-server
service is startedsudo cat /proc/graylog_server_PID/limits
) and note "Max open files" is the default (e.g. 4096)graylog-server
serviceulimit -n 64000
as the first line of thestart
function in "/etc/init.d/graylog-server"graylog-server
servicesudo cat /proc/graylog_server_PID/limits
) and note "Max open files" is now 64000Context
We were seeing "Too many open files" in the Graylog Server "server.log" and wanted to increase the limit to rule that out.
Your Environment