Zabbix: 内存溢出导致zabbix无法启动

1 查找zabbix日志文件,使用find命令

find / -name zabbix_server.log

2 查看日志文件

more /tmp/zabbix_server.log

3 发现错误报错

 28029:20200325:003238.095 cannot send list of active checks to "10.86.1.181": host [SCFT-TE5] not found
 28025:20200325:003253.499 __mem_malloc: skipped 2 asked 29472 skip_min 5176 skip_max 7528
 28025:20200325:003253.499 [file:dbconfig.c,line:90] zbx_mem_realloc(): out of memory (requested 29472 bytes)
 28025:20200325:003253.499 [file:dbconfig.c,line:90] zbx_mem_realloc(): please increase CacheSize configuration parameter
 27994:20200325:003253.502 One child process died (PID:28025,exitcode/signal:1). Exiting ...
 28024:20200325:003253.502 __mem_malloc: skipped 2 asked 29472 skip_min 5176 skip_max 7528
 27994:20200325:003255.505 syncing history data...
 27994:20200325:003255.507 syncing history data done
 27994:20200325:003255.507 syncing trend data...
 27994:20200325:003255.603 syncing trend data done
 27994:20200325:003255.603 Zabbix Server stopped. Zabbix 3.4.7 (revision 77720).
 28064:20200325:003305.659 Starting Zabbix Server. Zabbix 3.4.7 (revision 77720).

内存溢出报错如下:

zbx_mem_realloc(): out of memory (requested 29472 bytes)

4 解决:

编辑 /etc/zabbix/zabbix_server.conf

### 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

增加 CacheSize=1024M 即可,重启zabbix server

Was this article helpful?

Related Articles