I am migrating to the docker instance of Zabbix. It is able to connect to the database, but shortly crashes with the following error. I tried adding "CacheSize=2G" to a copy of the config file, then copying it into the container
docker cp zabbix_server.conf zabbix-server:/etc/zabbix/zabbix_server.conf
But after starting I would receive the same error message
** Starting Zabbix server
Starting Zabbix Server. Zabbix 4.0.1 (revision 86073).
Press Ctrl+C to exit.
1:20181106:142220.364 Starting Zabbix Server. Zabbix 4.0.1 (revision 86073).
1:20181106:142220.364 ****** Enabled features ******
1:20181106:142220.364 SNMP monitoring: YES
1:20181106:142220.364 IPMI monitoring: YES
1:20181106:142220.364 Web monitoring: YES
1:20181106:142220.364 VMware monitoring: YES
1:20181106:142220.364 SMTP authentication: YES
1:20181106:142220.364 Jabber notifications: NO
1:20181106:142220.364 Ez Texting notifications: YES
1:20181106:142220.364 ODBC: YES
1:20181106:142220.364 SSH2 support: YES
1:20181106:142220.364 IPv6 support: YES
1:20181106:142220.364 TLS support: YES
1:20181106:142220.364 ******************************
1:20181106:142220.364 using configuration file: /etc/zabbix/zabbix_server.conf
1:20181106:142221.132 current database version (mandatory/optional): 04000000/04000000
1:20181106:142221.132 required mandatory version: 04000000
1:20181106:142225.148 __mem_malloc: skipped 14 asked 244072 skip_min 264 skip_max 218840
1:20181106:142225.155 __mem_malloc: skipped 0 asked 136 skip_min 18446744073709551615 skip_max 0
1:20181106:142225.155 [file:dbconfig.c,line:94] zbx_mem_malloc(): out of memory (requested 136 bytes)
1:20181106:142225.155 [file:dbconfig.c,line:94] zbx_mem_malloc(): please increase CacheSize configuration parameter
1:20181106:142225.155 === memory statistics for configuration cache ===
1:20181106:142225.155 free chunks of size 24 bytes: 90
1:20181106:142225.155 free chunks of size 32 bytes: 3
1:20181106:142225.155 min chunk size: 24 bytes
1:20181106:142225.155 max chunk size: 32 bytes
1:20181106:142225.155 memory of total size 8388232 bytes fragmented into 74864 chunks
1:20181106:142225.155 of those, 2256 bytes are in 93 free chunks
1:20181106:142225.155 of those, 7188168 bytes are in 74771 used chunks
1:20181106:142225.155 ================================
1:20181106:142225.155 backtrace is not available for this platform
docker cp zabbix_server.conf zabbix-server:/etc/zabbix/zabbix_server.conf
But after starting I would receive the same error message
** Starting Zabbix server
Starting Zabbix Server. Zabbix 4.0.1 (revision 86073).
Press Ctrl+C to exit.
1:20181106:142220.364 Starting Zabbix Server. Zabbix 4.0.1 (revision 86073).
1:20181106:142220.364 ****** Enabled features ******
1:20181106:142220.364 SNMP monitoring: YES
1:20181106:142220.364 IPMI monitoring: YES
1:20181106:142220.364 Web monitoring: YES
1:20181106:142220.364 VMware monitoring: YES
1:20181106:142220.364 SMTP authentication: YES
1:20181106:142220.364 Jabber notifications: NO
1:20181106:142220.364 Ez Texting notifications: YES
1:20181106:142220.364 ODBC: YES
1:20181106:142220.364 SSH2 support: YES
1:20181106:142220.364 IPv6 support: YES
1:20181106:142220.364 TLS support: YES
1:20181106:142220.364 ******************************
1:20181106:142220.364 using configuration file: /etc/zabbix/zabbix_server.conf
1:20181106:142221.132 current database version (mandatory/optional): 04000000/04000000
1:20181106:142221.132 required mandatory version: 04000000
1:20181106:142225.148 __mem_malloc: skipped 14 asked 244072 skip_min 264 skip_max 218840
1:20181106:142225.155 __mem_malloc: skipped 0 asked 136 skip_min 18446744073709551615 skip_max 0
1:20181106:142225.155 [file:dbconfig.c,line:94] zbx_mem_malloc(): out of memory (requested 136 bytes)
1:20181106:142225.155 [file:dbconfig.c,line:94] zbx_mem_malloc(): please increase CacheSize configuration parameter
1:20181106:142225.155 === memory statistics for configuration cache ===
1:20181106:142225.155 free chunks of size 24 bytes: 90
1:20181106:142225.155 free chunks of size 32 bytes: 3
1:20181106:142225.155 min chunk size: 24 bytes
1:20181106:142225.155 max chunk size: 32 bytes
1:20181106:142225.155 memory of total size 8388232 bytes fragmented into 74864 chunks
1:20181106:142225.155 of those, 2256 bytes are in 93 free chunks
1:20181106:142225.155 of those, 7188168 bytes are in 74771 used chunks
1:20181106:142225.155 ================================
1:20181106:142225.155 backtrace is not available for this platform
Comment