[ZBX-24264] New device's items have high usage in the value cache until zabbix server restart Created: 2024 Mar 25  Updated: 2024 Jul 01  Resolved: 2024 Apr 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 6.0.27
Fix Version/s: 6.0.29rc1, 6.4.14rc1, 7.0.0beta3, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Will Rose Assignee: Andris Zeila
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 20.04


Attachments: Text File value-cache-post-restart.txt     Text File value-cache-server-log.txt    
Issue Links:
Duplicate
Team: Team A
Sprint: S24-W14/15, S24-W16/17
Story Points: 1

 Description   

Steps to reproduce:

  1. Add a device as follows:
  2. Check value cache

Result:
Permanently increasing values in the value cache for items with triggers using either min, avg or max functions with time in the parameters on the new hosts. Resulting in Zabbix value cache working in low memory mode alert (See value-cache-server-log.txt for zabbix_server.log output after adding 6 new devices. I have mapped the item id to the device and item name)
Restart brings the values back to normal amounts. (See value-cache-post-restart.txt for post-restart value cache command output)
Expected:
Value cache to be cleared after maximum time parameter in triggers

Further:
New devices were added as follows (used in the value cache server log output):

  1. 2024-03-14 16:40:38 Host Device 1 added
  2. 2024-03-14 16:40:39 Host Device 2 added
  3. 2024-03-14 17:28:00 Host Device 3 added
  4. 2024-03-14 17:28:01 Host Device 4 added
  5. 2024-03-15 16:08:40 Host Device 5 added
  6. 2024-03-15 16:08:40 Host Device 6 added


 Comments   
Comment by Vladislavs Sokurenko [ 2024 Apr 03 ]

Might be caused by ZBX-23688 this as active_range for new items is 0 , but probably should be current time when item is created

Comment by Andris Zeila [ 2024 Apr 11 ]

Released ZBX-24264 in:

  • pre-6.0.29rc1 d95f25c6ed8
  • pre-6.4.14rc1 ed0da7a0a43
  • pre-7.0.0beta3 4b2d86a1b8b
Generated at Tue Apr 29 10:11:31 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.