Zabbix server is no running

世事洞明皆学问,人情练达即文章。这篇文章主要讲述Zabbix server is no running相关的知识,希望能为你提供帮助。
在我自動化大量部署新增主機之後,zabbix server顯示Zabbix server is no running,查看log訊息,

[root@idczabbix85 zabbix]# tail -50 zabbix_server.log

【Zabbix server is no running】顯示 One child process died (PID:9954,exitcode/signal:1). Exiting ...
9953:20210927:180057.378 One child process died (PID:9954,exitcode/signal:1). Exiting ... 9953:20210927:180057.379 syncing trend data... 9953:20210927:180057.379 syncing trend data done 9953:20210927:180057.379 Zabbix Server stopped. Zabbix 5.0.14 (revision 892ce506db).

並看到
9954:20210927:180057.373 __mem_malloc: skipped 0 asked 96 skip_min 18446744073709551615 skip_max 0
9954:20210927:180057.374 [file:dbconfig.c,line:96] zbx_mem_malloc(): out of memory (requested 96 bytes)
9954:20210927:180057.374 [file:dbconfig.c,line:96] zbx_mem_malloc(): please increase CacheSize configuration parameter
記憶體溢出,需要調整增加cache
9953:20210927:180056.890 using configuration file: /etc/zabbix/zabbix_server.conf 9953:20210927:180056.894 current database version (mandatory/optional): 05000000/05000004 9953:20210927:180056.894 required mandatory version: 05000000 9953:20210927:180056.906 server #0 started [main process] 9954:20210927:180056.906 server #1 started [configuration syncer #1] 9954:20210927:180057.373 __mem_malloc: skipped 0 asked 96 skip_min 18446744073709551615 skip_max 0 9954:20210927:180057.374 [file:dbconfig.c,line:96] __zbx_mem_malloc(): out of memory (requested 96 bytes) 9954:20210927:180057.374 [file:dbconfig.c,line:96] __zbx_mem_malloc(): please increase CacheSize configuration parameter

找到設定檔,預設我都沒設定CacheSize,將其註釋取消掉,設定為1024M,重啟服務即可正常。
[root@idczabbix85 zabbix]# vim /etc/zabbix/zabbix_server.conf

Zabbix server is no running

文章图片

[root@idczabbix85 zabbix]# systemctl restart zabbix-server.service

Zabbix server is no running

文章图片


    推荐阅读