Ad Widget

Collapse

Out of Memory after increasing the CacheSize

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • goutham21
    Junior Member
    • Apr 2021
    • 1

    #1

    Out of Memory after increasing the CacheSize

    Hi Everyone,

    I am new to Zabbix, my instance was working fine after installing it 2 weeks ago until this morning. I keep getting an error saying "Zabbix server is not running" , i did look up forums and other posts on how to solve it.
    Everyone was recommending to increase the CacheSize in the /etc/zabbix/zabbix_server.conf file which i did, i have increased it from 8M to 1G.
    The server is still not running even after restarting the service multiple times along with the VM and have also increased the other parameters like VMwareCacheSize, TrendCacheSize etc. which did not help my cause.

    I feel like am missing something. Any help is appreciated.

    7950:20210406:195307.902 SMTP authentication: YES
    7950:20210406:195307.902 ODBC: YES
    7950:20210406:195307.902 SSH support: YES
    7950:20210406:195307.902 IPv6 support: YES
    7950:20210406:195307.902 TLS support: YES
    7950:20210406:195307.902 ******************************
    7950:20210406:195307.902 using configuration file: /etc/zabbix/zabbix_server.conf
    7950:20210406:195307.909 current database version (mandatory/optional): 05000000/05000002
    7950:20210406:195307.909 required mandatory version: 05000000
    7950:20210406:195307.920 server #0 started [main process]
    7951:20210406:195307.921 server #1 started [configuration syncer #1]
    7951:20210406:195308.374 __mem_malloc: skipped 0 asked 80 skip_min 18446744073709551615 skip_max 0
    7951:20210406:195308.374 [file:dbconfig.c,line:96] __zbx_mem_malloc(): out of memory (requested 80 bytes)
    7951:20210406:195308.374 [file:dbconfig.c,line:96] __zbx_mem_malloc(): please increase CacheSize configuration parameter
    7951:20210406:195308.374 === memory statistics for configuration cache ===
    7951:20210406:195308.374 free chunks of size 24 bytes: 75
    7951:20210406:195308.374 free chunks of size 40 bytes: 3
    7951:20210406:195308.374 free chunks of size 48 bytes: 1
    7951:20210406:195308.374 free chunks of size 56 bytes: 6
    7951:20210406:195308.374 free chunks of size 72 bytes: 1
    7951:20210406:195308.374 min chunk size: 24 bytes
    7951:20210406:195308.374 max chunk size: 72 bytes
    7951:20210406:195308.374 memory of total size 7212920 bytes fragmented into 73458 chunks
    7951:20210406:195308.374 of those, 2376 bytes are in 86 free chunks
    7951:20210406:195308.374 of those, 7210544 bytes are in 73372 used chunks
    7951:20210406:195308.374 of those, 1175312 bytes are used by allocation overhead
    7951:20210406:195308.374 ================================
    7951:20210406:195308.374 === Backtrace: ===
    7951:20210406:195308.375 14: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_backtrace+0x52) [0x562bb7634639]
    7951:20210406:195308.375 13: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](__zbx_mem_malloc+0x184) [0x562bb762ec22]
    7951:20210406:195308.375 12: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](+0x1b1074) [0x562bb75f2074]
    7951:20210406:195308.375 11: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_hashset_insert_ext+0x133) [0x562bb763acd7]
    7951:20210406:195308.375 10: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_hashset_insert+0x31) [0x562bb763aba2]
    7951:20210406:195308.375 9: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](DCfind_id+0xb4) [0x562bb75f2b03]
    7951:20210406:195308.375 8: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](+0x1ba5e4) [0x562bb75fb5e4]
    7951:20210406:195308.375 7: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](DCsync_configuration+0x1029) [0x562bb75ffc77]
    7951:20210406:195308.375 6: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](dbconfig_thread+0x11a) [0x562bb749d68a]
    7951:20210406:195308.375 5: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_thread_start+0x3b) [0x562bb7644478]
    7951:20210406:195308.375 4: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](MAIN_ZABBIX_ENTRY+0x9e8) [0x562bb748c2e9]
    7951:20210406:195308.375 3: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](daemon_start+0x303) [0x562bb763417b]
    7951:20210406:195308.375 2: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](main+0x309) [0x562bb748b89e]
    7951:20210406:195308.375 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f2d71ade0b3]
    7951:20210406:195308.375 0: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](_start+0x2e) [0x562bb748a88e]
    7950:20210406:195308.379 One child process died (PID:7951,exitcode/signal:1). Exiting ...
    7950:20210406:195308.381 syncing trend data...
    7950:20210406:195308.381 syncing trend data done
    7950:20210406:195308.382 Zabbix Server stopped. Zabbix 5.0.9 (revision 4d07aaafe2).
    7975:20210406:195318.582 Starting Zabbix Server. Zabbix 5.0.9 (revision 4d07aaafe2).
    7975:20210406:195318.582 ****** Enabled features ******
    7975:20210406:195318.582 SNMP monitoring: YES
    7975:20210406:195318.582 IPMI monitoring: YES
    7975:20210406:195318.582 Web monitoring: YES
    7975:20210406:195318.582 VMware monitoring: YES
    7975:20210406:195318.582 SMTP authentication: YES
    7975:20210406:195318.582 ODBC: YES
    7975:20210406:195318.582 SSH support: YES
    7975:20210406:195318.582 IPv6 support: YES
    7975:20210406:195318.582 TLS support: YES
    7975:20210406:195318.582 ******************************
    7975:20210406:195318.582 using configuration file: /etc/zabbix/zabbix_server.conf
    7975:20210406:195318.591 current database version (mandatory/optional): 05000000/05000002
    7975:20210406:195318.592 required mandatory version: 05000000
    7975:20210406:195318.603 server #0 started [main process]
    7981:20210406:195318.603 server #1 started [configuration syncer #1]
    7981:20210406:195318.984 __mem_malloc: skipped 0 asked 80 skip_min 18446744073709551615 skip_max 0
    7981:20210406:195318.984 [file:dbconfig.c,line:96] __zbx_mem_malloc(): out of memory (requested 80 bytes)
    7981:20210406:195318.984 [file:dbconfig.c,line:96] __zbx_mem_malloc(): please increase CacheSize configuration parameter
    7981:20210406:195318.984 === memory statistics for configuration cache ===
    7981:20210406:195318.984 free chunks of size 24 bytes: 75
    7981:20210406:195318.984 free chunks of size 40 bytes: 3
    7981:20210406:195318.984 free chunks of size 48 bytes: 1
    7981:20210406:195318.984 free chunks of size 56 bytes: 6
    7981:20210406:195318.984 free chunks of size 72 bytes: 1
    7981:20210406:195318.984 min chunk size: 24 bytes
    7981:20210406:195318.984 max chunk size: 72 bytes
    7981:20210406:195318.984 memory of total size 7212920 bytes fragmented into 73458 chunks
    7981:20210406:195318.984 of those, 2376 bytes are in 86 free chunks
    7981:20210406:195318.984 of those, 7210544 bytes are in 73372 used chunks
    7981:20210406:195318.984 of those, 1175312 bytes are used by allocation overhead
Working...