nicht erhöhen Ich möchte Dateideskriptoren für Rabbitmq Server erhöhen.Kann Dateideskriptoren für Rabbitmq
Maschinendetails:
[email protected]:/home/# uname -a
Linux rabbitmq-stats-node 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) x86_64 GNU/Linux
Hier sind die Details der Konfigurationsparameter geändert:
[email protected]:/home/# cat /proc/sys/fs/file-max
500000
[email protected]:/home/# tail -n1 /etc/pam.d/common-session
session required pam_limits.so
[email protected]:/home/# tail -n1 /etc/pam.d/common-session-noninteractive
session required pam_limits.so
[email protected]:/home/# tail -n4 /etc/security/limits.conf
* soft nofile 65536
* hard nofile 500000
root soft nofile 65536
root hard nofile 500000
[email protected]:/home/# sysctl -p
fs.file-max = 500000
[email protected]:/home/# sudo service rabbitmq-server restart
[email protected]:/home/# sudo reboot
Nachdem alle Konfigurationsänderungen, ich bin nicht in der Lage Datei desciptors Grenze zu ändern.
[email protected]:/home/# rabbitmqctl status | grep -A1 descriptors
{file_descriptors,
[{total_limit,924},{total_used,13},{sockets_limit,829},{sockets_used,3}]},
ich geänderte Grenze sehen kann, wenn ich eingeben,
[email protected]:/home/# ulimit -n
65536
Obwohl die Änderungen nicht in rabbitmq Installation reflektiert werden.
Ich habe auch versucht, ulimit Zeile zu /usr/lib/rabbitmq/bin/rabbitmq-env
Datei hinzuzufügen. Obwohl rabbitmq Server nach dem Hinzufügen dieser Änderung nicht gestartet wird. Fehler ausgelöst:
ulimit: error setting limit (Operation not permitted)