IT@程序员猿媛程序员运维工具平台

zabbix内存溢出

2019-04-26  本文已影响3人  ccie的系统运维小学生

1.告警具体内容

root@zabbix~]# tail -f /var/log/zabbix/zabbix_server.log  1210:20190424:184356.303 Jabber notifications:      NO  1210:20190424:184356.303 Ez Texting notifications:  YES  1210:20190424:184356.303 ODBC:                      YES  1210:20190424:184356.304 SSH2 support:              YES  1210:20190424:184356.304 IPv6 support:              YES  1210:20190424:184356.304 TLS support:              YES  1210:20190424:184356.304 ******************************  1210:20190424:184356.304 using configuration file: /etc/zabbix/zabbix_server.conf  1210:20190424:184356.319 current database version (mandatory/optional): 04020000/04020000  1210:20190424:184356.319 required mandatory version: 04020000  1210:20190424:184357.015 __mem_malloc: skipped 10 asked 14216 skip_min 256 skip_max 5208  1210:20190424:184357.015 [file:dbconfig.c,line:94] __zbx_mem_realloc(): out of memory (requested 14216 bytes)  1210:20190424:184357.015 [file:dbconfig.c,line:94] __zbx_mem_realloc(): please increase CacheSize configuration parameter  1210:20190424:184357.015 === memory statistics for configuration cache ===  1210:20190424:184357.015 free chunks of size    24 bytes:      12  1210:20190424:184357.015 free chunks of size    32 bytes:      10  1210:20190424:184357.015 free chunks of size >= 256 bytes:      10  1210:20190424:184357.015 min chunk size:        24 bytes  1210:20190424:184357.015 max chunk size:      5208 bytes  1210:20190424:184357.015 memory of total size 8388232 bytes fragmented into 78055 chunks  1210:20190424:184357.015 of those,      25752 bytes are in      32 free chunks  1210:20190424:184357.015 of those,    7113616 bytes are in    78023 used chunks  1210:20190424:184357.015 ================================  1210:20190424:184357.015 === Backtrace: ===  1210:20190424:184357.016 13: /usr/sbin/zabbix_server(zbx_backtrace+0x42) [0x7fdbaa2e9a16]  1210:20190424:184357.016 12: /usr/sbin/zabbix_server(__zbx_mem_realloc+0x169) [0x7fdbaa2e51e8]  1210:20190424:184357.016 11: /usr/sbin/zabbix_server(+0x15e02c) [0x7fdbaa2af02c]  1210:20190424:184357.016 10: /usr/sbin/zabbix_server(zbx_hashset_reserve+0xc1) [0x7fdbaa2eebf8]  1210:20190424:184357.016 9: /usr/sbin/zabbix_server(zbx_hashset_insert_ext+0xee) [0x7fdbaa2eee6f]  1210:20190424:184357.016 8: /usr/sbin/zabbix_server(zbx_hashset_insert+0x2d) [0x7fdbaa2eed7f]  1210:20190424:184357.016 7: /usr/sbin/zabbix_server(DCfind_id+0x86) [0x7fdbaa2af99a]  1210:20190424:184357.016 6: /usr/sbin/zabbix_server(+0x165669) [0x7fdbaa2b6669]  1210:20190424:184357.016 5: /usr/sbin/zabbix_server(DCsync_configuration+0xb52) [0x7fdbaa2bae47]  1210:20190424:184357.016 4: /usr/sbin/zabbix_server(MAIN_ZABBIX_ENTRY+0x746) [0x7fdbaa19098a]  1210:20190424:184357.016 3: /usr/sbin/zabbix_server(daemon_start+0x2f6) [0x7fdbaa2e925a]  1210:20190424:184357.016 2: /usr/sbin/zabbix_server(main+0x312) [0x7fdbaa190242]  1210:20190424:184357.016 1: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fdba66ccb15]  1210:20190424:184357.016 0: /usr/sbin/zabbix_server(+0x3e309) [0x7fdbaa18f309]

2.修改zabbix的配置文件

vi zabbix_server.conf 

修改Option: CacheSize

# CacheSize=8M

#注释去掉,将8M修改为1g,具体数值大小可根据服务器修改。

修改完了后重启服务。

上一篇下一篇

猜你喜欢

热点阅读