Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12344

Server is not running due to a Problem with the shared memory size

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • DISTRIB_ID=Ubuntu
      DISTRIB_RELEASE=14.04
      DISTRIB_CODENAME=trusty
      DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
      Zabbix server v2.4.7 (revision 56694)

      The server is not running even when i restart it i have this error :

       * Stopping Zabbix server zabbix_server                                                                                                                      No process in pidfile '/var/run/zabbix/zabbix_server.pid' found running; none killed.
      

      In zabbix_server.log file i have this :

       5565:20170704:095602.879 Starting Zabbix Server. Zabbix 2.4.7 (revision 56694).
        5565:20170704:095602.879 ****** Enabled features ******
        5565:20170704:095602.879 SNMP monitoring:           YES
        5565:20170704:095602.879 IPMI monitoring:           YES
        5565:20170704:095602.879 WEB monitoring:            YES
        5565:20170704:095602.879 VMware monitoring:         YES
        5565:20170704:095602.879 Jabber notifications:      YES
        5565:20170704:095602.879 Ez Texting notifications:  YES
        5565:20170704:095602.879 ODBC:                      YES
        5565:20170704:095602.879 SSH2 support:              YES
        5565:20170704:095602.879 IPv6 support:              YES
        5565:20170704:095602.879 ******************************
        5565:20170704:095602.879 using configuration file: /etc/zabbix/zabbix_server.conf
        5565:20170704:095602.879 In load_modules()
        5565:20170704:095602.880 End of load_modules():SUCCEED
        5565:20170704:095602.880 In init_database_cache()
        5565:20170704:095602.880 In zbx_mem_required_size() size:0 chunks_num:4 descr:'history cache' param:'HistoryCacheSize'
        5565:20170704:095602.880 End of zbx_mem_required_size() size:543
        5565:20170704:095602.880 In zbx_mem_create() descr:'history cache' param:'HistoryCacheSize' size:8388583
        5565:20170704:095602.880 zbx_shmget() removing existing shm_id:655365
        5565:20170704:095602.880 valid user addresses: [0x7f66ae310170, 0x7f66aeb0ffd8] total size: 8388200
        5565:20170704:095602.880 End of zbx_mem_create()
        5565:20170704:095602.880 In zbx_mem_required_size() size:0 chunks_num:1 descr:'history text cache' param:'HistoryTextCacheSize'
        5565:20170704:095602.880 End of zbx_mem_required_size() size:435
        5565:20170704:095602.880 In zbx_mem_create() descr:'history text cache' param:'HistoryTextCacheSize' size:16777216
        5565:20170704:095602.880 zbx_shmget() removing existing shm_id:688134
        5565:20170704:095602.880 valid user addresses: [0x7f66ad310178, 0x7f66ae30fff0] total size: 16776824
        5565:20170704:095602.880 End of zbx_mem_create()
        5565:20170704:095602.880 In init_trend_cache()
        5565:20170704:095602.880 In zbx_mem_required_size() size:0 chunks_num:1 descr:'trend cache' param:'TrendCacheSize'
        5565:20170704:095602.880 End of zbx_mem_required_size() size:422
        5565:20170704:095602.880 In zbx_mem_create() descr:'trend cache' param:'TrendCacheSize' size:4194304
        5565:20170704:095602.880 zbx_shmget() removing existing shm_id:720903
        5565:20170704:095602.880 valid user addresses: [0x7f66acf10170, 0x7f66ad30fff0] total size: 4193920
        5565:20170704:095602.880 End of zbx_mem_create()
        5565:20170704:095602.880 End of init_trend_cache()
        5565:20170704:095602.880 End of init_database_cache()
        5565:20170704:095602.880 In init_configuration_cache() size:8388608000
        5565:20170704:095602.880 In zbx_mem_create() descr:'configuration cache' param:'CacheSize' size:7130316800
        5565:20170704:095602.880 cannot allocate shared memory of size 7130316800: [22] Invalid argument
        5565:20170704:095602.880 cannot allocate shared memory for configuration cache
      

      And i try to resolve it by using increasing the values kernel.shmmax and kernel.shmall as suggested in here https://www.zabbix.org/wiki/How_to/configure_shared_memory :

      sudo sysctl -a | grep -E "shmall|shmmax"
      kernel.shmall = 3294967296
      kernel.shmmax = 1294967296
      

      But I still have the same errors Can you help me please.

            Unassigned Unassigned
            youngkdidi Khady NGOM
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: