[ZBX-9731] Unused items can cause value cache to switch to low memory mode Created: 2015 Jul 27  Updated: 2024 Apr 10  Resolved: 2018 Aug 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.9, 2.4.5, 2.5.0
Fix Version/s: 4.0.0beta1, 4.0 (plan)

Type: Problem report Priority: Minor
Reporter: Andris Zeila Assignee: Andris Zeila
Resolution: Fixed Votes: 0
Labels: valuecache
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File total.png    
Team: Team A
Sprint: Sprint 40
Story Points: 1

 Description   

When an item is not accessed for a day or more value cache will continue to collect its history data and will remove it from cache only when it rans out of free space.

However if the space is needed to store more data for such item, then this item is not removed from cache. In theory this might cause value cache to switch to low memory mode even if there are some space that might be freed without problems.

This could be easily fixed by removing the item instead of adding new values if it has not been accessed during last 24 hours. This would also make unused item cleanup redundant in vc_release_space() function.



 Comments   
Comment by Andris Zeila [ 2018 Aug 08 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9731-40
Unused cleanup item in vc_release_space() is still needed to remove items that are not accessed for a day and don't have new values coming in.

The development branch is based on trunk to have value cache test suites. After review patch will be merged to 3.0 and then changes to 3.4, 4.0 as usual.

Comment by Andris Zeila [ 2018 Aug 09 ]

Released in:

  • pre-4.0.0alpha10 r83675
Generated at Fri Apr 26 02:38:08 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.