zabbix过错集合及解决办法

0x01  zabbix_server dead but subsys locked过错

今天把Zabbix版本从3.2升级到了3.4。但在发动Zabbix_Server时呈现了”zabbix_server dead but subsys locked”的过错状况。

1、问题原因

在查看了zabbix_server日志,发现日志里有下面的告警

zbx_mem_malloc(): out of memory (requested 256 bytes)
zbx_mem_malloc(): please increase CacheSize configuration parameter

过错原因写的很理解,内存溢出,请调整CacheSize巨细。

2、问题解决

修改zabbix_server.conf配置文件,定位到CacheSize关键字位置,然后调高CacheSize巨细,巨细依据自己环境调整

# Size of configuration cache, in bytes.
# Shared memory size for storing host, item and trigger data.
#
# Mandatory: no
# Range: 128K-8G
# Default:
CacheSize=32M

最终重启zabbix_server服务即可。

0x02  Zabbix value cache working in low memory mode过错

问题解决:

修改zabbix_server.conf配置文件,定位到ValueCacheSize关键字位置,然后调高ValueCacheSize巨细,巨细依据自己环境调整

# Option: ValueCacheSize
# Size of history value cache, in bytes.
# Shared memory size for caching item history data requests.
# Setting to 0 disables value cache.
#
# Mandatory: no
# Range: 0,128K-64G
# Default:
ValueCacheSize=2048M