1. 添加过多的设备,导致zabbix_server 假死
zabbix server is not running,the information displayed may not be current.
2.查看zabbix日志发现/tmp/zabbix_server.log oom了。
三、问题解决
1.根据报错中的如下条目,确认为CacheSize参数配置有问题导致
9655:20220726:030200.288 [file:dbconfig.c,line:97] __zbx_shmem_realloc(): please increase CacheSize configuration parameter
2.将zabbix服务端配置文件的如下参数做了调整:
]# cat /etc/zabbix/zabbix_server.conf|grep -E "^CacheSize"
CacheSize=1024M
# cat /etc/zabbix/zabbix_server.conf|grep -E "^StartHTTPPollers"
StartHTTPPollers=64
# cat /etc/zabbix/zabbix_server.conf|grep -E "^StartPingers"
StartPingers=128
#systemctl restart zabbix_server.service #修改完成后,重启zabbix服务
3.将mysql的最大连接数调整为1000
#echo "max_cnotallow=1000" >> /etc/my.cnf
因之前是用二进制 安装,所以使用这种方式,运行mysql
/usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --initialize-insecure
/usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf &
如rpm安装,可直接重启
[root@localhost ~]#systemctl restart mysqld.service
[root@localhost ~]#systemctl restart zabbix-server.service
标签:server,cnf,etc,zabbix,添加,mysql,CacheSize From: https://www.cnblogs.com/ccsway/p/17595081.html