zabbix_server 启动报错 __zbx_mem_malloc(): out of memory (requested 40 bytes) 解决方法
文章
林里克斯
实验平台:
CentOS Linux release 7.7.1908 (Core)
zabbix_server Version:
zabbix_server (Zabbix) 5.0.4
1.具体报错
2586:20210314:163812.674 __mem_malloc: skipped 0 asked 40 skip_min 18446744073709551615 skip_max 0
2586:20210314:163812.674 [file:dbconfig.c,line:94] __zbx_mem_malloc(): out of memory (requested 40 bytes)
2586:20210314:163812.675 [file:dbconfig.c,line:94] __zbx_mem_malloc(): please increase CacheSize configuration parameter
2586:20210314:163812.675 === memory statistics for configuration cache ===
2586:20210314:163812.675 free chunks of size 24 bytes: 58
2586:20210314:163812.675 min chunk size: 24 bytes
2586:20210314:163812.675 max chunk size: 24 bytes
2586:20210314:163812.675 memory of total size 268435080 bytes fragmented into 2691726 chunks
2586:20210314:163812.675 of those, 1392 bytes are in 58 free chunks
2586:20210314:163812.675 of those, 225366088 bytes are in 2691668 used chunks
2586:20210314:163812.675 ================================
2586:20210314:163812.675 === Backtrace: ===
2586:20210314:163812.676 11: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_backtrace+0x35) [0x4ad3a5]
2586:20210314:163812.676 10: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](__zbx_mem_malloc+0x121) [0x4aa0d1]
2586:20210314:163812.676 9: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_hashset_insert_ext+0xc8) [0x4b0c18]
2586:20210314:163812.676 8: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration]() [0x41f981]
2586:20210314:163812.676 7: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](DCsync_configuration+0x2000) [0x48e800]
2586:20210314:163812.676 6: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](dbconfig_thread+0xc0) [0x428bb0]
2586:20210314:163812.676 5: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_thread_start+0x3e) [0x4b670e]
2586:20210314:163812.676 4: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](MAIN_ZABBIX_ENTRY+0x6cb) [0x42379b]
2586:20210314:163812.676 3: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](daemon_start+0x1ac) [0x4acf1c]
2586:20210314:163812.676 2: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration](main+0x52c) [0x42291c]
2586:20210314:163812.677 1: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f14a048e555]
2586:20210314:163812.677 0: /data/zabbix_server/sbin/zabbix_server: configuration syncer [syncing configuration]() [0x422c1d]
2570:20210314:163813.010 One child process died (PID:2586,exitcode/signal:1). Exiting ...
2570:20210314:163813.012 syncing trend data...
2570:20210314:163813.013 syncing trend data done
2570:20210314:163813.013 Zabbix Server stopped. Zabbix 4.0.20 (revision 3b651d1b0b).
2.解决报错(please increase CacheSize configuration parameter
,请增加 CacheSize
配置参数)
$ vim /data/zabbix_server/etc/
### Option: CacheSize
# Size of configuration cache, in bytes.
# Shared memory size for storing host, item and trigger data.
#
# Mandatory: no
# Range: 128K-64G
# Default:
# CacheSize=8M
CacheSize=4096M
#根据自己的资源状态给予,范围是 128K-64G。一般给 2G 就可以解决报错,如果不行可以再增加
Over~
版权协议须知!
本篇文章来源于 Uambiguous ,如本文章侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
1409 0 2021-03-14
博主卡片
运维时间
搭建这个平台,只为分享及记载自己所遇之事和难题。
现在时间 2024-12-28
今日天气
站点统计
- 文章总数:241篇
- 分类总数:29个
- 评论总数:12条
- 本站总访问量 353627 次
@xiaozi 最后的分享的镜像下载地址打不开 服务器没有开机吗?
@yuanyuan 为什么我的4b安装centos7.9 插上tf卡 显示不兼...
@Wong arrhenius 牛比
@MakerFace 厉害了!
@TongSir 老哥 更新下我的友链链接 https://blog.ton...