Ad Widget

Collapse

Out of Memory Error on Startup - CacheSize Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monitor1981
    Junior Member
    • Jan 2022
    • 1

    #1

    Out of Memory Error on Startup - CacheSize Help

    Zabbix 4.0.29 on CentOS 8. Approximately 200 hosts.

    After adding the hosts, zabbix throws an error:

    [file:dbconfig.c,line:95] __zbx_mem_malloc(): please increase CacheSize configuration parameter

    Sounds easy enough to fix...but after increasing the CacheSizes I get the same error when starting the zabbix-server. I increased the values several times, but something in the log stands out to me...the memory of total size remains at 8MB, which is the default.
    I have increased this value in the configs, but the logs are stating 8388232 bytes (8MB). What am I missing?


    I also confirmed in the logs that it's reading the correct configuration file, /etc/zabbix_server.conf


    [file:dbconfig.c,line:95] __zbx_mem_malloc(): out of memory (requested 40 bytes)

    [file:dbconfig.c,line:95] __zbx_mem_malloc(): please increase CacheSize configuration parameter

    === memory statistics for configuration cache ===

    free chunks of size 24 bytes: 7

    free chunks of size 32 bytes: 4

    min chunk size: 24 bytes

    max chunk size: 32 bytes

    memory of total size 8388232 bytes fragmented into 74201 chunks

    16035:20220103:175643.595 of those, 296 bytes are in 11 free chunks

    16035:20220103:175643.595 of those, 7200736 bytes are in 74190 used chunks

    16035:20220103:175643.595 of those, 1187200 bytes are used by allocation overhead
Working...