[
https://issues.apache.org/jira/browse/ARTEMIS-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17877566#comment-17877566
]
Justin Bertram commented on ARTEMIS-4688:
-----------------------------------------
I think you can do this by setting something like this:
{code:xml}
<auto-delete-queues>true</auto-delete-queues>
<auto-delete-queues-message-count>-1</auto-delete-queues-message-count>
<auto-delete-queues-delay>60000</auto-delete-queues-delay>{code}
This will auto-delete queues regardless of how many messages they contain once
no consumers have been connected for 1 minute.
> add idle subscription removal after timeout
> -------------------------------------------
>
> Key: ARTEMIS-4688
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4688
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Broker
> Affects Versions: 2.32.0
> Reporter: Erwin Dondorp
> Priority: Major
>
> In Artemis, messages expire by their individual message setting. With some
> variations possible via address settings in the broker configuration.
> But unused subscription-queues are never removed, except for the non-durable
> ones.
> Request is to add a idle-timeout for queues from durable subscriptions. The
> subscription and its queue should then be deleted when there are no
> subscribers during a given time-period.
> I believe ActiveMQ Classic has this via the offlineDurableSubscriberTimeout
> setting, see also
> https://activemq.apache.org/components/classic/documentation/manage-durable-subscribers.
>
> This subject was also mentioned a while back in
> [https://stackoverflow.com/questions/56115426/apache-activemq-artemis-durable-subscription-ttl;]
> but, for our use-cases, using only message-expiry is not sufficient. this is
> because each abandonned durable subscription still stores messages, and is
> thus using resources.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact