故障描述:
在配置zabbix過程中瀏覽器下方提示如下告警,之前zabbix是能正常使用的,查看zabbix server服務程序沒起來,重啓服務也沒用,重啓系統也沒用,無緣無故就報錯,讓我一臉懵逼,防火牆和selinux都是關閉的,
檢查日誌有如下提示。
tailf /var/log/zabbix/zabbix_server.log
1230:20180706:165735.809 [file:dbconfig.c,line:90] zbx_mem_malloc(): out of memory (requested 120 bytes)
1230:20180706:165735.809 [file:dbconfig.c,line:90] zbx_mem_malloc(): please increase CacheSize configuration parameter
故障原因和解決辦法:
是由於zabbix server配置文件裏的CacheSize 大小不足導致,默認是8M,設置大一點
vim /etc/zabbix/zabbix_server.conf
378 ### Option: CacheSize
379 # Size of configuration cache, in bytes.
380 # Shared memory size for storing host, item and trigger data.
381 #
382 # Mandatory: no
383 # Range: 128K-8G
384 # Default:
385 CacheSize=2048M
386