activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lionel Cons (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-582) Add support for automatic deletion of unused destinations
Date Tue, 21 Jun 2016 08:50:58 GMT

    [ https://issues.apache.org/jira/browse/ARTEMIS-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341386#comment-15341386
] 

Lionel Cons commented on ARTEMIS-582:
-------------------------------------

I have tried again this morning, running a bunch of STOMP tests against an empty broker. At
the end of the tests (as well as 30 minutes later), the broker still has plenty of unused
destinations.

Using JMX, I could count:
 - 38 module=JMS,serviceType=Queue objects
 - 37 module=JMS,serviceType=Topic objects
 - 75 module=Core,serviceType=Address objects
 - 75 module=Core,serviceType=Queue objects

Here is one example of an empty Core queue:
{code}
"org.apache.activemq.artemis:address=\"jms.queue.test.mbtf.BnQWDIph.BnRHDwEc\",brokerName=\"artemis\",module=Core,name=\"jms.queue.test.mbtf.BnQWDIph.BnRHDwEc\",serviceType=Queue,type=Broker"
: {
      "Address" : "jms.queue.test.mbtf.BnQWDIph.BnRHDwEc",
      "ConsumerCount" : 0,
      "DeadLetterAddress" : "jms.queue.DLQ",
      "DeliveringCount" : 0,
      "Durable" : true,
      "ExpiryAddress" : "jms.queue.ExpiryQueue",
      "Filter" : null,
      "FirstMessageAge" : "...",
      "FirstMessageAsJSON" : "...",
      "FirstMessageTimestamp" : null,
      "ID" : 1168953,
      "MessageCount" : 0,
      "MessagesAcknowledged" : 1,
      "MessagesAdded" : 1,
      "Name" : "jms.queue.test.mbtf.BnQWDIph.BnRHDwEc",
      "Paused" : false,
      "ScheduledCount" : 0,
      "Temporary" : false
   },
{code}

Along with its matching JMS queue:
{code}
   "org.apache.activemq.artemis:brokerName=\"artemis\",module=JMS,name=\"test.mbtf.BnQWDIph.BnRHDwEc\",serviceType=Queue,type=Broker"
: {
      "Address" : "jms.queue.test.mbtf.BnQWDIph.BnRHDwEc",
      "ConsumerCount" : 0,
      "DeadLetterAddress" : "jms.queue.DLQ",
      "DeliveringCount" : 0,
      "ExpiryAddress" : "jms.queue.ExpiryQueue",
      "FirstMessageAge" : "...",
      "FirstMessageAsJSON" : "...",
      "FirstMessageTimestamp" : null,
      "MessageCount" : 0,
      "MessagesAdded" : 1,
      "Name" : "test.mbtf.BnQWDIph.BnRHDwEc",
      "Paused" : false,
      "RegistryBindings" : [],
      "ScheduledCount" : 0,
      "Selector" : null,
      "Temporary" : false
   },
{code}

Both have MessageCount=0.

Since {{auto-delete-jms-queues}} and {{auto-delete-jms-topics}} are both true by default (and
not changed in my configuration), I don't understand why these destinations have not been
automatically deleted.

> Add support for automatic deletion of unused destinations
> ---------------------------------------------------------
>
>                 Key: ARTEMIS-582
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-582
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Lionel Cons
>
> ActiveMQ 5.x can be configured to automatically delete inactive destinations, see http://activemq.apache.org/delete-inactive-destinations.html.
> This is very useful for clients that create short-live reply destinations, like MCollective
does (see https://docs.puppet.com/mcollective/deploy/middleware/activemq.html#reply-queue-pruning).
> Could Artemis also be configured to automatically delete inactive destinations?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message