早上登录Zabbix的时候,发现其提示“Zabbix server is not running: the information displayed may not be current”,检查Zabbix Server的状态为activating (auto-restart)而不是activating (running)态:,如下所示

# systemctl status zabbix-server

● zabbix-server.service - Zabbix Server

Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)

Active: activating (auto-restart) (Result: exit-code) since Mon 2020-07-13 08:23:21 CST; 4s ago

Process: 542511 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/FAILURE)

Process: 542504 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)

Main PID: 542506 (code=exited, status=0/SUCCESS)

Jul 13 08:23:21 xxxx systemd[1]: zabbix-server.service: Control process exited, code=exited status=1

Jul 13 08:23:21 xxxx systemd[1]: zabbix-server.service: Failed with result 'exit-code

检查Zabbix-Server的错误日志,发现其报如下错误:

542396:20200713:082055.295 __mem_malloc: skipped 0 asked 96 skip_min 18446744073709551615 skip_max 0
542396:20200713:082055.295 [file:dbconfig.c,line:95] __zbx_mem_malloc(): out of memory (requested 96 bytes)
542396:20200713:082055.295 [file:dbconfig.c,line:95] __zbx_mem_malloc(): please increase CacheSize configuration parameter

542395:20200713:082054.179 ****** Enabled features ******

542395:20200713:082054.179 SNMP monitoring:           YES

542395:20200713:082054.179 IPMI monitoring:           YES

542395:20200713:082054.179 Web monitoring:            YES

542395:20200713:082054.179 VMware monitoring:         YES

542395:20200713:082054.180 SMTP authentication:       YES

542395:20200713:082054.180 ODBC:                      YES

542395:20200713:082054.180 SSH support:               YES

542395:20200713:082054.180 IPv6 support:              YES

542395:20200713:082054.180 TLS support:               YES

542395:20200713:082054.180 ******************************

542395:20200713:082054.180 using configuration file: /etc/zabbix/zabbix_server.conf

542395:20200713:082054.190 current database version (mandatory/optional): 05000000/05000000

542395:20200713:082054.191 required mandatory version: 05000000

542395:20200713:082054.214 server #0 started [main process]

542396:20200713:082054.215 server #1 started [configuration syncer #1]

542396:20200713:082055.295 __mem_malloc: skipped 0 asked 96 skip_min 18446744073709551615 skip_max 0

542396:20200713:082055.295 [file:dbconfig.c,line:95] __zbx_mem_malloc(): out of memory (requested 96 bytes)

542396:20200713:082055.295 [file:dbconfig.c,line:95] __zbx_mem_malloc(): please increase CacheSize configuration parameter

542396:20200713:082055.295 === memory statistics for configuration cache ===

542396:20200713:082055.295 free chunks of size     80 bytes:        1

542396:20200713:082055.295 min chunk size:         80 bytes

542396:20200713:082055.295 max chunk size:         80 bytes

542396:20200713:082055.295 memory of total size 8388232 bytes fragmented into 74114 chunks

542396:20200713:082055.295 of those,         80 bytes are in        1 free chunks

542396:20200713:082055.295 of those,    7202344 bytes are in    74113 used chunks

542396:20200713:082055.295 ================================

542396:20200713:082055.295 === Backtrace: ===

542396:20200713:082055.297 16: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_backtrace+0x3f) [0x56170ffb03c8]

542396:20200713:082055.297 15: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](__zbx_mem_malloc+0x180) [0x56170ffab414]

542396:20200713:082055.297 14: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](+0x1865aa) [0x56170ff735aa]

542396:20200713:082055.297 13: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](+0x1c831a) [0x56170ffb531a]

542396:20200713:082055.297 12: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_hashmap_set+0xf3) [0x56170ffb5791]

542396:20200713:082055.297 11: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](+0x1c510a) [0x56170ffb210a]

542396:20200713:082055.297 10: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](+0x1c52c1) [0x56170ffb22c1]

542396:20200713:082055.297 9: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_binary_heap_insert+0xbf) [0x56170ffb27b5]

542396:20200713:082055.297 8: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](+0x191be0) [0x56170ff7ebe0]

542396:20200713:082055.297 7: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](DCsync_configuration+0x1157) [0x56170ff7fddf]

542396:20200713:082055.297 6: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](dbconfig_thread+0x116) [0x56170fe40ac2]

542396:20200713:082055.297 5: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](zbx_thread_start+0x37) [0x56170ffbf0cd]

542396:20200713:082055.297 4: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](MAIN_ZABBIX_ENTRY+0x9cb) [0x56170fe334c8]

542396:20200713:082055.297 3: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](daemon_start+0x2ff) [0x56170ffaffd4]

542396:20200713:082055.297 2: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](main+0x2f5) [0x56170fe32afb]

542396:20200713:082055.297 1: /lib64/libc.so.6(__libc_start_main+0xf3) [0x7f595fa966a3]

542396:20200713:082055.297 0: /usr/sbin/zabbix_server: configuration syncer [syncing configuration](_start+0x2e) [0x56170fe31bae]

542395:20200713:082055.301 One child process died (PID:542396,exitcode/signal:1). Exiting ...

542395:20200713:082055.304 syncing trend data...

542395:20200713:082055.304 syncing trend data done

542395:20200713:082055.304 Zabbix Server stopped. Zabbix 5.0.1 (revision c2a0b03480).

日志提示Zabbix内存溢出了,out of memory (requested 96 bytes)和please increase CacheSize configuration parameter。 需要增加CacheSize的大小,找到/etc/zabbix/zabbix_server.conf参数文件,检查发现CacheSize参数没有设置,使用默认的值,将其调整为2048M大小(新安装的Zabbix服务器,忘记调整一些参数设置了!),重启Zabbix Server服务,问题解决。

### Option: CacheSize

#       Size of configuration cache, in bytes.

#       Shared memory size for storing host, item and trigger data.

#

# Mandatory: no

# Range: 128K-64G

# Default:

# CacheSize=8M

CacheSize=2048M

Zabbix Server宕机报“__zbx_mem_malloc(): out of memory (requested 96 bytes)”的更多相关文章

  1. server宕机监控、检測、报警程序(139绑定手机短信报警)monitor_down.sh

    宕机监控报警程序 一.   需求来源 宕机对运维人员来说,最痛苦了.怎样检測一台server是否还在正常执行,假设该server宕机,怎样在第一时间监測到并通知一线运维人员进行维护,最大化降低损失. ...

  2. NFS Server宕机后,NFS Client主机上df命令挂死

    方法1: 使用root用户:Oracle@NDMCDB05:~> su -Password: NDMCDB05:~ # cat /etc/mtab /dev/sda2 / reiserfs rw ...

  3. zabbix server安装(二)

    https://mp.weixin.qq.com/s/ogaqiX4vhtGLepuNf-1ItA zabbix依赖LNMP或LAMP,下面讲解LNMP安装到zabbix web页面的访问. 一.ng ...

  4. HBase RegionServer宕机处理恢复

    本文分析RegionServer宕机后这个region server上的region是如何在其他region server上恢复的. region server宕机后发生了什么   HMaster有一 ...

  5. HBase–RegionServer宕机恢复原理

    Region Server宕机总述 HBase一个很大的特色是扩展性极其友好,可以通过简单地加机器实现集群规模的线性扩展,而且机器的配置并不需要太好,通过大量廉价机器代替价格昂贵的高性能机器.但也正因 ...

  6. Redis生产环境节点宕机问题报错及恢复排错

    Redis故障发现 主观下线 当cluster-node-timeout时间内某节点无法与另一个节点顺利完成ping消息通信时,则将该节点标记为主观下线状态. 客观下线 当某个节点判断另一个节点主观下 ...

  7. VmWare平台Windows Server 2012 无响应宕机

    我们生产服务器都部署在VMware ESXi 5.5平台上,最近大半年的时间,偶尔就会出现操作系统为Windows Servre 2012的服务器出现没有任何响应(unresponsive)的情况,出 ...

  8. Zabbix增加邮箱后Server宕处理

    zabbix版本:4.1  DB为Mysql 过程: 1,为了增加邮件报警功能,按照网上文章,开始增加发送邮件模块.先停postfix,后安装mailx和sendmail. systemctl lis ...

  9. 【JVM】linux上tomcat中部署的web服务,时好时坏,莫名其妙宕机,报错:There is insufficient memory for the Java Runtime Environment to continue.

    =========================================================================================== 环境: linu ...

随机推荐

  1. 几行python代码实现钉钉自动打卡,网友:终于告别缺勤了

    前言 众所周知因为疫情的原因大家都没有办法上学和上班,“钉钉”这个app起到了重大的作用.学校为了学生成绩开启“钉钉”之路.老师也成一个“合格”的主播,感谢XXX童鞋的礼物.666扣起来 老师为了营造 ...

  2. JS 移动端笔记

    移动端的网页特效     移动端触屏事件概述 触屏touch事件     touchstart 手指触摸到一个DOM元素时触发     touchmove 手指在一个DOM上滑动时触发     tou ...

  3. Codechef July Challenge 2020 Division 1 记录

    目录 Missing a Point Chefina and Swaps Doctor Chef Chef and Dragon Dens LCM Constraints Weird Product ...

  4. ASP.NET Core - 实现Http自定义请求头策略

    前言 在正常的情况下,当我们系统用到JWT认证方式时,需要在Http请求头添加Authorization: XXX,这样在后台服务的控制器中打上[Authorize]授权标签,就限定所有的请求必须通过 ...

  5. C# winform 弹出窗体给父窗体传值

    Winform程序有很多传值的方法,抱着学习的态度.利用委托注册事件的方法,给窗体统一添加事件: 首先定义一个Frm_Base: namespace 任意 { public partial class ...

  6. C#算法设计排序篇之08-计数排序(附带动画演示程序)

    计数排序(Counting Sort) 该文章的最新版本已迁移至个人博客[比特飞],单击链接 https://www.byteflying.com/archives/689 访问. 计数排序是一个非基 ...

  7. 使用 VMware Workstation Pro让 PC 提供云桌面服务——学习笔记(三)

    目标 当在前面两篇博客后,我们已经创建了一个能当服务器的虚拟机,这时我们需要通过复制虚拟机来让创建更多虚拟机 操作步骤 1.创建克隆 这里主要是VMware软件的操作 虚拟机->管理->克 ...

  8. 数据源管理 | 分布式NoSQL系统,Cassandra集群管理

    本文源码:GitHub·点这里 || GitEE·点这里 一.Cassandra简介 1.基础描述 Cassandra是一套开源分布式NoSQL数据库系统.它最初由Facebook开发,用于储存收件箱 ...

  9. [C/C++]快速读入代码(快读)

    快读 1.为什么要有快读 好吧,有些题目看上去十分简单,例如https://www.luogu.com.cn/problem/P4305这道题,实际上数据量巨多,光是一个测试点就可能有几个MB,在这种 ...

  10. 用前端姿势玩docker【五】快速构建中类Unix系统与Windows系统的差异化处理

    目录 用前端姿势玩docker[一]Docker通俗理解常用功能汇总与操作埋坑 用前端姿势玩docker[二]dockerfile定制镜像初体验 用前端姿势玩docker[三]基于nvm的前端环境构建 ...