Zabbix value cache working in low memory mode


Zabbix監控自身時告警Zabbix value cache working in low memory mode,出現這個問題是因為Zabbix Server的參數ValueCacheSize大小設置不合理。一般默認值為8M。

 

 

clip_image001

 

### Option: ValueCacheSize

#       Size of history value cache, in bytes.

#       Shared memory size for caching item history data requests.

#       Setting to 0 disables value cache.

#

# Mandatory: no

# Range: 0,128K-64G

# Default:

# ValueCacheSize=8M

 

ValueCacheSize

0,128K-64G

8M

歷史數據緩存大小, 單位為字節。
0即禁止緩存 (不建議
).
當緩存大小超過共享內存時,每5
分鍾會向服務器日志寫入一條警告信息。
Zabbix 2.2.0
開始支持該參數。

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.

 

為了更快地計算觸發器表達式、計算或聚合類型監控項和一些宏。自ZABBIX 2.2起,ZABBIX Server支持值緩存選項。

這個存放在內存中的緩存,可以用於訪問歷史數據,而不需要對數據庫直接執行SQL調用。如果緩存中不存在請求得歷史值,則會從數據庫請求缺失的數據,並相應地更新緩存。

要啟用值緩存功能,Zabbix服務器配置文件支持可選的ValueCacheSize參數。

 

調整ValueCacheSize=256M大小(根據實際情況進行調整大小),然后重啟Zabbix Server服務器,即可解決問題

 

systemctl restart zabbix-server

 

 

 

參考資料:

 

https://www.zabbix.com/documentation/4.0/zh/manual/appendix/config/zabbix_server


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM