Rabbitmqサーバのファイル記述子を増やしたいと思います。rabbitmqのファイル記述子を増やすことができません
マシンの詳細:
[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
ここでは、設定パラメータの詳細が変更されます。すべての構成変更後
[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
を、私は、ファイルdesciptors制限を変更することができません。私が入力したときに、私が変更された制限値を見ることができます
[email protected]:/home/# rabbitmqctl status | grep -A1 descriptors
{file_descriptors,
[{total_limit,924},{total_used,13},{sockets_limit,829},{sockets_used,3}]},
、変更がRabbitMQのインストールに反映されていないものの
[email protected]:/home/# ulimit -n
65536
。
また、/usr/lib/rabbitmq/bin/rabbitmq-env
ファイルにulimit行を追加しようとしました。この変更を加えた後は、rabbitmqサーバーが起動しません。エラーがスローさ:
ulimit: error setting limit (Operation not permitted)