Zabbix日志提示内存不足问题解决办法

本文档描述了Zabbix_server启动时遇到的问题,即10051端口无法正常监听,并提供了详细的日志分析。日志显示由于内存分配不足导致配置缓存错误。解决方案是通过编辑`/usr/local/zabbix/etc/zabbix_server.conf`配置文件,增大VMwareCacheSize和CacheSize参数,分别设置为2G和8G,然后重启服务端以解决问题。
摘要由CSDN通过智能技术生成

故障现象:
Zabbix_server能正常启动但是10051无法正常监听

Zabbix日志提示:

1921:20200507:145141.391 using configuration file: /usr/local/zabbix/etc/zabbix_server.conf
1921:20200507:145141.397 current database version (mandatory/optional): 04040000/04040000
1921:20200507:145141.397 required mandatory version: 04040000
1921:20200507:145141.766 __mem_malloc: skipped 0 asked 256 skip_min 18446744073709551615 skip_max 0
1921:20200507:145141.766 [file:dbconfig.c,line:94] __zbx_mem_malloc(): out of memory (requested 256 bytes)
1921:20200507:145141.766 [file:dbconfig.c,line:94] __zbx_mem_malloc(): please increase CacheSize configuration parameter
1921:20200507:145141.766 === memory statistics for configuration cache ===
1921:20200507:145141.766 free chunks of size 24 bytes: 63
1921:20200507:145141.766 free chunks of size 32 bytes: 2
1921:20200507:145141.766 free chunks of size 40 bytes: 8
1921:20200507:145141.766 free chunks of size 56 bytes: 1
1921:20200507:145141.766 free chunks of size 64 bytes: 1
1921:20200507:145141.766 free chunks of size 72 bytes: 3
1921:20200507:145141.766 min chunk size: 24 bytes
1921:20200507:145141.766 max chunk size: 72 bytes
1921:20200507:145141.766 memory of total size 8388232 bytes fragmented into 69649 chunks
1921:20200507:145141.766 of those, 2232 bytes are in 78 free chunks
1921:20200507:145141.766 of those, 7271632 bytes are in 69571 used chunks
1921:20200507:145141.766 ================================

解决办法:
vim /usr/local/zabbix/etc/zabbix_server.conf编辑配置文件,修改VMwareCacheSize与CacheSize参数;

VMwareCacheSize=2G
CacheSize=8G

在这里插入图片描述

在这里插入图片描述

重启服务端即可!!!

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值