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

相關文章
相關標籤/搜索