How to regularly and automatically clean up invalid topic queues by apache artemis
This article will explain in detail how apache artemis automatically cleans up invalid topic queues on a regular basis. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Apache artemis periodically automatically cleans up invalid topic queues
Delete inactive queues (Delete Inactive Destinations)
Https://my.oschina.net/zengfr
Artemis configuration:
True true 86400000 0 FORCE true 86400000 FORCE
SchedulePeriodForDestinationPurge:10000 checks every ten seconds. The default is 0. This feature is turned off.
GcInactiveDestinations: true deletes inactive queues. Default is false.
Delete inactiveTimoutBeforeGC:30000 after 30 seconds of inactivity. Default is 60 seconds.
Modify activemq.xml to add attribute schedulerSupport= "true" to restart mq
Http://activemq.apache.org/delete-inactive-destinations
This is the end of the article on "how apache artemis automatically cleans up invalid topic queues regularly". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.