Столкнулся с проблемой перманентного падения заббикса по нехватке памяти... Хочу мониторить 16к свитчей, но заббиксу не хватает памяти и он падает.
Когда указываю большой лимит в конфиге заббикса:
mon3 scripts # grep -i cache /etc/zabbix/zabbix_server.conf
CacheSize=1G
HistoryCacheSize=16M
HistoryTextCacheSize=2M
TrendCacheSize=64M
Падает потому что система не даёт выделить столько, хотя на сервере 8 гигов памяти:
30780:20120514:130456.478 ******************************
30780:20120514:130456.483 cannot allocate shared memory of size 912680551: [22] Invalid argument
30780:20120514:130456.483 cannot allocate shared memory for configuration cache
Когда занижаешь лимит, до допустимых системой 1G - 912680551B = примерно 88 метров. Для уверенности ставлю лимит CacheSize=50M
Заббикс долго думает после старта, но всёравно падает:
32235:20120514:133543.251 server #8 started [unreachable poller #1]
32229:20120514:133543.257 server #3 started [poller #1]
32230:20120514:133543.261 server #4 started [poller #2]
32231:20120514:133543.268 server #5 started [poller #3]
32227:20120514:133603.931 __mem_malloc: skipped 0 asked 40 skip_min 4294967295 skip_max 0
32227:20120514:133603.931 [file:dbconfig.c,line:1293] zbx_mem_malloc(): out of memory (requested 40 bytes)
32227:20120514:133603.931 [file:dbconfig.c,line:1293] zbx_mem_malloc(): please increase CacheSize configuration parameter
31137:20120514:133604.056 One child process died (PID:32227,exitcode/signal:255). Exiting ...
31137:20120514:133606.060 syncing history data...
31137:20120514:133606.060 syncing history data done
31137:20120514:133606.060 syncing trends data...
31137:20120514:133606.060 syncing trends data done
31137:20120514:133606.060 Zabbix Server stopped. Zabbix 1.8.10 (revision 24303).
Как быть? Какие системные лимиты поднимать? Система gentoo c grsecurity.
Когда указываю большой лимит в конфиге заббикса:
mon3 scripts # grep -i cache /etc/zabbix/zabbix_server.conf
CacheSize=1G
HistoryCacheSize=16M
HistoryTextCacheSize=2M
TrendCacheSize=64M
Падает потому что система не даёт выделить столько, хотя на сервере 8 гигов памяти:
30780:20120514:130456.478 ******************************
30780:20120514:130456.483 cannot allocate shared memory of size 912680551: [22] Invalid argument
30780:20120514:130456.483 cannot allocate shared memory for configuration cache
Когда занижаешь лимит, до допустимых системой 1G - 912680551B = примерно 88 метров. Для уверенности ставлю лимит CacheSize=50M
Заббикс долго думает после старта, но всёравно падает:
32235:20120514:133543.251 server #8 started [unreachable poller #1]
32229:20120514:133543.257 server #3 started [poller #1]
32230:20120514:133543.261 server #4 started [poller #2]
32231:20120514:133543.268 server #5 started [poller #3]
32227:20120514:133603.931 __mem_malloc: skipped 0 asked 40 skip_min 4294967295 skip_max 0
32227:20120514:133603.931 [file:dbconfig.c,line:1293] zbx_mem_malloc(): out of memory (requested 40 bytes)
32227:20120514:133603.931 [file:dbconfig.c,line:1293] zbx_mem_malloc(): please increase CacheSize configuration parameter
31137:20120514:133604.056 One child process died (PID:32227,exitcode/signal:255). Exiting ...
31137:20120514:133606.060 syncing history data...
31137:20120514:133606.060 syncing history data done
31137:20120514:133606.060 syncing trends data...
31137:20120514:133606.060 syncing trends data done
31137:20120514:133606.060 Zabbix Server stopped. Zabbix 1.8.10 (revision 24303).
Как быть? Какие системные лимиты поднимать? Система gentoo c grsecurity.
Comment