Zabbix memory reallocated. Zabbix server not starting.

timestamp:::   using configuration file: /etc/zabbix/zabbix_server.conf
timestamp:::   current database version (mandatory/optional): 03050162/03050162
timestamp:::   required mandatory version: 03050162
timestamp:::   __mem_malloc: skipped 1 asked 512 skip_min 400 skip_max 400
timestamp:::   [file:dbconfig.c,line:94] zbx_mem_realloc(): out of memory (requested 512 bytes)
timestamp:::   [file:dbconfig.c,line:94] zbx_mem_realloc(): please increase CacheSize configuration parameter

Ошибка говорит о том, что кончилось место выделенное под запись хостов и прочих элементов мониторинга. Итак, немного о параметрах, что нам предстоит изменить.

CacheSize — Size of configuration cache, in bytes. Shared memory size for storing host, item and trigger data.

HistoryCacheSize — Size of history cache, in bytes. Shared memory size for storing history data.

HistoryIndexCacheSize — Size of history index cache, in bytes. Shared memory size for indexing history data stored in history cache. The index cache size needs roughly 100 bytes to cache one item.

TrendCacheSize — Size of trend cache, in bytes. Shared memory size for storing trends data.

ValueCacheSize — Size of history value cache, in bytes. Shared memory size for caching item history data requests. Setting to 0 disables value cache (not recommended). When value cache runs out of the shared memory a warning message is written to the server log every 5 minutes.

Я установил следующие значения:

CacheSize=2048M
HistoryCacheSize=1024M
TrendCacheSize=256M
HistoryIndexCacheSize=1024M
ValueCacheSize=512M