zabbix内存溢出问题

随着监控的主机越来越多,zabbix出现了一系列的问题

zabbix一直起不来

监控日志内容如下:

27572:20140911:092454.909 using configuration file: /usr/local/sms/etc/zabbix_server.conf
27572:20140911:092454.917 current database version (mandatory/optional): 02020000/02020001
27572:20140911:092454.917 required mandatory version: 02020000
27572:20140911:092455.393 __mem_malloc: skipped 0 asked 256 skip_min 4294967295 skip_max 0
27572:20140911:092455.393 [file:dbconfig.c,line:444] zbx_mem_malloc(): out of memory (requested 256 bytes)
27572:20140911:092455.393 [file:dbconfig.c,line:444] zbx_mem_malloc(): please increase CacheSize configuration parameter
19500:20140911:094207.842 Starting Zabbix Server. Zabbix 2.2.5 (revision 47411).

解决办法:

找到zabbix的主配置文件 修改如下:

### Option: CacheSize
#       Size of configuration cache, in bytes.
#       Shared memory size for storing host, item and trigger data.
#
# Mandatory: no
# Range: 128K-8G
# Default:
# CacheSize=8M
CacheSize=1024M  (这个值根据自己的需求)

重新启动zabbix恢复正常!


你可能感兴趣的:(linux,监控,zabbix)