我想增加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}]},
我可以看到變化的限制,當我進入,
[email protected]:/home/# ulimit -n
65536
雖然變化不會反映在RabbitMQ的安裝。
我也嘗試添加ulimit行到/usr/lib/rabbitmq/bin/rabbitmq-env
文件。儘管rabbitmq服務器在添加此更改後未啓動。錯誤拋出:
ulimit: error setting limit (Operation not permitted)