0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Zabbix&Zabbixproxyにてout of memoryが発生した場合

Posted at

概要

Zabbix及びZabbixProxyでは、ある程度アイテム数が多くなって監視対象が大規模になると、急にダウンする事がある。その時、systemctl start しても起動しなかったりする。なお、今回のZabbixのバージョンは5.0と仮定する。

その際、以下のようなログが表示される可能性がある。

/var/log/zabbix/zabbix_proxy.log
zbx_mem_malloc(): out of memory (requested 136 bytes)
2068:20160203:051106.554 [file:dbconfig.c,line:446] zbx_mem_malloc(): please increase CacheSize configuration parameter

もしくは

/var/log/zabbix/zabbix_server.log
zbx_mem_malloc(): out of memory (requested 136 bytes)
2068:20160203:051106.554 [file:dbconfig.c,line:446] zbx_mem_malloc(): please increase CacheSize configuration parameter

この時は、以下のようにZabbixの設定ファイルを変更する。128Kから、64Gまでの間で設定する。

/etc/zabbix/zabbix_server.conf
CacheSize=512M

ちなみに、proxy、serverも5.0まではデフォルト8M。6.0からはデフォルト32Mとのこと。

/etc/zabbix/zabbix_proxy.conf
CacheSize=512M

その後、Zabbixserver(proxyserver)の再起動を行う。

zabbixserver
systemctl restart zabbix-server

proxyの場合

zabbixproxy
systemctl restart zabbix-proxy

その後、無事Zabbix及びZabbixServerを起動させる事ができた。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?