-
Incident report
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
4.4.5
-
None
-
zabbix docker Zabbix 4.4.5 (revision b93f5c4).
Steps to reproduce:
- We create the zabbix container with this:
Docker run --name zabbixserver -t -e DB_SERVER_HOST="172.17.0.1" -e POSTGRES_USER="zabbix" -e POSTGRES_PASSWORD="CGAupc33" -e POSTGRES_DB="zabbix" -e ZBX_ENABLE_SNMP_TRAPS="true" --link zabbixdb:postgres -p 10051:10051 --volumes-from zabbix-snmptraps --restart unless-stopped -d zabbix/zabbix-server-pgsql
- After two weeks, zabbix container didn't start.
- We got this message in logs:
__mem_malloc: skipped 0 asked 136 skip_min 18446744073709551615 skip_max 0
158:20200312:030918.806 file:dbconfig.c,line:94 __zbx_mem_malloc(): out of memory (requested 136 bytes)
158:20200312:030918.806 file:dbconfig.c,line:94 __zbx_mem_malloc(): please increase CacheSize configuration parameter
158:20200312:030918.806 === memory statistics for configuration cache ===
158:20200312:030918.806 free chunks of size 24 bytes: 9
158:20200312:030918.806 free chunks of size 104 bytes: 1
158:20200312:030918.806 min chunk size: 24 bytes
158:20200312:030918.806 max chunk size: 104 bytes
158:20200312:030918.806 memory of total size 8388232 bytes fragmented into 79287 chunks
158:20200312:030918.806 of those, 320 bytes are in 10 free chunks
158:20200312:030918.806 of those, 7119336 bytes are in 79277 used chunks
158:20200312:030918.806 ================================
- We modified the env variables in the config.v2.json of
/var/lib/docker/containers/{container id} Disable SELinux and increase to 512MB shared memory in redhat 7.7 (host) zabbix container is still not starting, as far as we check the logs it seems that new value of ZBX_CACHESIZE is not taking efect. n zbx_mem_create() param:'CacheSize' size:8388608 7:20200312:030918.329 valid user addresses: [0x7fe7f75e4168, 0x7fe7f7de3ff0] total size: 8388232
Result:
See log file...