Zabbix Running on Low Memory Mode
Hey folks, another Zabbix post today. This one it’s about increasing the Zabbix Server Cache. It’s pretty common (if you have the default settings only) get a warning about your Zabbix value cache running on low memory mode at your dashboard or logs.


To solve, go back to your Zabbix config file ( zabbix_server.conf ) and look for the tag CacheSize. Uncomment it and set to a value bigger than 8M (8M it’s the default value). In my case, we set a cache of 100M. After the change, restart the service.
### 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=100M #uncomment this line

Translations:
Related Posts:
- Zabbix poller processes more than 75%
- Zabbix Server Out of Memory
- Zabbix ICMP pinger processes more than 75%
- Using git hooks to easy your life
Zabbix value cache working in low memory mode как исправить
1618 人浏览 / 0 人评论
历史数据缓存大小, 单位为字节。
0即禁止缓存 (不建议).
当缓存大小超过共享内存时,每5分钟会向服务器日志写入一条警告信息。
从 Zabbix 2.2.0开始支持
全部评论


- k8s网络插件调研 一
- shell脚本利用正则检查crontab的
- nvidia_gpu_exporter监控指标
- etcd选举的详细流程
- kubelet报错:PLEG is not healthy
- ipvs和iptables的区别
- k8smaster-请求受到了节流
- etcd报错:发送心跳超时
- k8s-kubelet源码修改BUG
- k8s集群创建pod的详细流程
Zabbix Fehler – value cache working in low memory mode
Installiert ist Zabbix Server 4.4 unter Debian Buster. Im Dashboard habe ich vor kurzem folgende Fehlermeldung vom Zabbix Server gesehen:

Laut Zabbix Dokumentation für 4.0 ist folgendes zum Wert “ValueCacheSize” zu wissen:
| Parameter | Mandatory | Range | Default | Description |
|---|---|---|---|---|
| ValueCacheSize | no | 0,128K-64G | 8M | 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. This parameter is supported since Zabbix 2.2.0. |
So was ist die Lösung? Da ich die Serverkonfiguration bisher nicht angefasst und optimiert habe schauen ich mal nach dem aktuellen Wert:
# cat /etc/zabbix/zabbix_server.conf |grep -i valuecachesize ### Option: ValueCacheSize # ValueCacheSize=8M
Der Wert ist deaktiviert und daher per Definition auf Default 8MB eingestellt. Der aktuelle Status des Systems sieht wie folgt aus:

Ok, also 146 Hosts mit 2232 Items und 1071 Triggers.
Änderung der ValueCacheSize
Nachdem nun das Problem und die Ursache sowie die Lösung klar sind, wird die ValueCacheSize geändert:
# sed -i 's/# ValueCacheSize=8M/ValueCacheSize=24M/g' /etc/zabbix/zabbix_server.conf # systemctl restart zabbix-server
Nun noch den Graphen die nächste Zeit beobachten und ggf. den Wert entsprechend anpassen und die Meldung ist weg. Bei mir sah es dann mit den obigen Änderungen entspannter aus:

Interessiert in verschiedenste IT Themen, schreibe ich in diesem Blog über Software, Hardware, Smart Home, Games und vieles mehr. Ich berichte z.B. über die Installation und Konfiguration von Software als auch von Problemen mit dieser. News sind ebenso spannend, sodass ich auch über Updates, Releases und Neuigkeiten aus der IT berichte. Letztendlich nutze ich Taste-of-IT als eigene Dokumentation und Anlaufstelle bei wiederkehrenden Themen. Ich hoffe ich kann dich ebenso informieren und bei Problemen eine schnelle Lösung anbieten. Wer meinen Aufwand unterstützen möchte, kann gerne eine Tasse oder Pod Kaffe per PayPal spenden – vielen Dank.
Zabbix value cache operating mode, what causes this to change?
Our zabbix instance went into ‘low memory’ value cache operating mode a while ago and I have not been able to figure out why. Our value cache usage % is currently 23% and has a max value of 42% since well before this issue happened. Does anyone know what causes this memory mode to change, how to recover from being in low memory mode, or if this is even an issue if the usage is within its range? I could not find a lot of documentation on how the memory mode works in zabbix, if anyone knows where I might find that that would also be helpful =] using Zabbix version 4.2.3 currently if that’s relevant