You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "ymwneu (via GitHub)" <gi...@apache.org> on 2025/03/31 09:50:38 UTC

[I] [Enhancement] StatsItemSet cleans up inactive items. [rocketmq]

ymwneu opened a new issue, #9300:
URL: https://github.com/apache/rocketmq/issues/9300

   ### Before Creating the Enhancement Request
   
   - [x] I have confirmed that this should be classified as an enhancement rather than a bug/feature.
   
   
   ### Summary
   
   StatsItemSet and MomentStatsItem record a large amount of statistics for topics and consumers. Currently, they are only cleaned up when the resource is deleted. If a resource is abandoned by the user but not actually deleted, this statistical information will remain in memory indefinitely.
   
   ### Motivation
   
   If these inactive keys are not cleaned up, they will consume a large amount of memory when there is a significant volume of topic and group metadata.
   
   ### Describe the Solution You'd Like
   
   Introduce a configuration parameter named "maxStatsIdleTimeInMinutes" and record the last update time for each item. If an item's last update time is older than the current time by more than maxStatsIdleTimeInMinutes, consider the item inactive and clean it up to free memory.
   
   ### Describe Alternatives You've Considered
   
   No
   
   ### Additional Context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Enhancement] StatsItemSet cleans up inactive items. [rocketmq]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #9300: [Enhancement] StatsItemSet cleans up inactive items.
URL: https://github.com/apache/rocketmq/issues/9300


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org