zabbix内存溢出问题

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

zabbix一直起不来
ui

监控日志内容以下:spa

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).日志

解决办法:server

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

### 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  (这个值根据本身的需求)
it

从新启动zabbix恢复正常!
io

相关文章
相关标签/搜索