Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to regularly and automatically clean up invalid topic queues by apache artemis

Shulou Source: shulou.com Published: 2022-06-01 04:08:22 11月15日 Update

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.

Tags: Queues topics articles activities more good practical content functions properties articles knowledge references help related check configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS vpn Shulou Technology Huawei Docker