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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to