failed to write [cannot accept incoming IPC connection: [24] Too many open files] into log file

zabbix调优过程中会出现如下错误:

 

 需要进行如下参数调整

修改
/etc/security/limits.conf
* soft nofile 655350 
* hard nofile 655350 
* soft nproc  655350 
* hard nproc  655350 

修改
/etc/systemd/system.conf 和 /etc/systemd/user.conf
DefaultLimitCORE=infinity
DefaultLimitNOFILE=100000
DefaultLimitNPROC=100000

修改
/etc/sysctl.conf
kernel.sem =500 64000 64  128
fs.file-max = 6553600

执行命令
sysctl -p 
systemctl daemon-reload
systemctl daemon-reexec

网络配置参数
sysctl -w net.ipv4.tcp_max_syn_backlog=4096
sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216"
sysctl -w net.ipv4.tcp_wmem="4096 87380 16777216"
sysctl -w net.ipv4.tcp_fin_timeout=30
sysctl -w net.core.reme_max=16777216
sysctl -w net.core.weme_max=16777216

  

  

posted @ 2022-04-02 16:27  摩天居士-谢烟客  阅读(652)  评论(0)    收藏  举报