Ad Widget

Collapse

Zabbix server keeps restarting - Cache Size?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MuriloHB
    Junior Member
    • Feb 2019
    • 29

    #1

    Zabbix server keeps restarting - Cache Size?

    Hello guys!

    So I'm facing some issues regarding lack of cache on Zabbix and I can't seem to figure it out why... The server keeps shutting down after about 5 minutes.
    This is the message I'm getting when looking at the logs:

    Code:
      2270:20191119:214628.812 [file:vmware.c,line:92] __zbx_mem_malloc(): out of memory (requested 269 bytes)
      2270:20191119:214628.812 [file:vmware.c,line:92] __zbx_mem_malloc(): please increase VMwareCacheSize configuration parameter
      2270:20191119:214628.812 === memory statistics for vmware cache size ===
      2270:20191119:214628.812 free chunks of size    216 bytes:        1
      2270:20191119:214628.812 min chunk size:        216 bytes
      2270:20191119:214628.812 max chunk size:        216 bytes
      2270:20191119:214628.812 memory of total size 262143200 bytes fragmented into 1527574 chunks
      2270:20191119:214628.812 of those,        216 bytes are in        1 free chunks
      2270:20191119:214628.812 of those,  237701816 bytes are in  1527573 used chunks
      2270:20191119:214628.812 ================================
    I've already increased VMwareCacheSize on zabbix_server.conf ( /etc/zabbix/zabbix_server.conf )
    Those are my current configurations regarding cache size:

    Code:
    ### Option: VMwareCacheSize
    #       Size of VMware cache, in bytes. Shared memory size for storing VMware data. Only used if VMware collectors are started.
    #
    # Mandatory: no Range: 256K-2G Default:
     VMwareCacheSize=250M
    
    ### Option: CacheSize
    #       Size of configuration cache, in bytes. Shared memory size for storing host, item and trigger data.
    #
    # Mandatory: no Range: 128K-8G Default:
     CacheSize=64M
    ### Option: CacheUpdateFrequency
    #       How often Zabbix will perform update of configuration cache, in seconds.
    #
    # Mandatory: no Range: 1-3600 Default:
     CacheUpdateFrequency=60
    
    # Mandatory: no Range: 1-100 Default: StartDBSyncers=4
    ### Option: HistoryCacheSize
    #       Size of history cache, in bytes. Shared memory size for storing history data.
    #
    # Mandatory: no Range: 128K-2G Default: HistoryCacheSize=16M
    ### Option: HistoryIndexCacheSize
    #       Size of history index cache, in bytes. Shared memory size for indexing history cache.
    #
    # Mandatory: no Range: 128K-2G Default: HistoryIndexCacheSize=4M
    ### Option: TrendCacheSize
    #       Size of trend cache, in bytes. Shared memory size for storing trends data.
    #
    # Mandatory: no Range: 128K-2G Default: TrendCacheSize=4M
    ### Option: ValueCacheSize
    #       Size of history value cache, in bytes. Shared memory size for caching item history data requests. Setting to 0 disables value cache.
    #
    # Mandatory: no Range: 0,128K-64G Default: ValueCacheSize=8M
    ​​​​
    I've also tried to increase the CacheSize to 64M but it doesn't seem to work aswell. Am I missing something??

    Thanks for the help!
Working...