Did a consumer connect to the queue at any point? The broker will wait for at least one consumer to connect so that it doesn't delete a queue before it's actually used.
Justin On Tue, Sep 27, 2022 at 12:30 PM John Lilley <john.lil...@redpointglobal.com.invalid> wrote: > No consumer, no producers, no messages. > > > > > [image: rg] <https://www.redpointglobal.com/> > > John Lilley > > Chief Architect, Redpoint Global Inc. > > 888 Worcester Street, Suite 200 Wellesley, MA 02482 > > *M: *+1 7209385761 <+1%207209385761> | john.lil...@redpointglobal.com > > *From:* Clebert Suconic <clebert.suco...@gmail.com> > *Sent:* Tuesday, September 27, 2022 9:46 AM > *To:* users@activemq.apache.org > *Subject:* Re: Antwort: [Ext] RE: Help getting Artemis to auto-delete > empty/idle queues > > > > **** [Caution] This email is from an external source. Please use caution > responding, opening attachments or clicking embedded links. **** > > > > No consumers ? > > > > On Tue, Sep 27, 2022 at 10:34 AM John Lilley < > john.lil...@redpointglobal.com.invalid> wrote: > > The queues are all empty. > > Thanks > > john > > > > > > [image: rg] > <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,OLJeXw239c7ng5sKENfgvnv_pxTMO5HuCKx7WQqdlZ_6rOUZi2Gm-KK2DC5qZQ3bu6VatmQZxzlFj5vCMVZ1ET9V2VFhz-21y-kBwibv2s4j4UZ0TKyr1b8,&typo=1> > > *John Lilley * > > *Chief Architect, Redpoint Global Inc. * > > 888 Worcester Street, Suite 200 Wellesley, MA 02482 > <https://www.google.com/maps/search/888+Worcester+Street,+Suite+200+Wellesley,+MA+02482?entry=gmail&source=g> > > *M: *+1 7209385761 <+1%207209385761> | john.lil...@redpointglobal.com > > *From:* herbert.helmstr...@systema.com <herbert.helmstr...@systema.com> > *Sent:* Tuesday, September 27, 2022 8:23 AM > *To:* users@activemq.apache.org > *Subject:* Antwort: [Ext] RE: Help getting Artemis to auto-delete > empty/idle queues > > > > **** [Caution] This email is from an external source. Please use caution > responding, opening attachments or clicking embedded links. **** > > > > Hi John, > > did you check TimeToLive of the Messages in the queue? > At least for me this was the problem for a similar case. > > Herbert > ------------------------------ > > *Herbert Helmstreit* > Dipl.-Phys. > Software Engineer > > > <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.systema.com&c=E,1,Y7JePCXq8NZPvofD1UtIG94Td1S00vb1lDGAhUvd0r17Bm6Ww-XPQEzKdFvRPI-nsCKHBsPtgXdNGiqZXnR0g6gvyXc4KAPFd9CGQTnaIxgr7nFd2S-b&typo=1> > > Phone: +49 941 / 7 83 92 36 > Fax: +49 351 / 88 24 772 > <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.systema.com&c=E,1,Y7JePCXq8NZPvofD1UtIG94Td1S00vb1lDGAhUvd0r17Bm6Ww-XPQEzKdFvRPI-nsCKHBsPtgXdNGiqZXnR0g6gvyXc4KAPFd9CGQTnaIxgr7nFd2S-b&typo=1> > > *herbert.helmstr...@systema.com* | *www.systema.com* > <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.systema.com&c=E,1,Y7JePCXq8NZPvofD1UtIG94Td1S00vb1lDGAhUvd0r17Bm6Ww-XPQEzKdFvRPI-nsCKHBsPtgXdNGiqZXnR0g6gvyXc4KAPFd9CGQTnaIxgr7nFd2S-b&typo=1> > > > <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.systema.com&c=E,1,Y7JePCXq8NZPvofD1UtIG94Td1S00vb1lDGAhUvd0r17Bm6Ww-XPQEzKdFvRPI-nsCKHBsPtgXdNGiqZXnR0g6gvyXc4KAPFd9CGQTnaIxgr7nFd2S-b&typo=1> > > SYSTEMA Systementwicklung Dipl.-Inf. Manfred Austen GmbH > *Schikanederstraße 2b* - Posthof | 93053 Regensburg > HRB 11256 Amtsgericht Dresden | USt.-ID DE 159 607 786 > Geschäftsführer: Manfred Austen, CEO und Dr. Ulf Martin, COO > > > > > > Von: "John Lilley" <*john.lil...@redpointglobal.com.INVALID*> > An: "*users@activemq.apache.org <users@activemq.apache.org>*" > <*users@activemq.apache.org > <users@activemq.apache.org>*> > Datum: 27.09.2022 14:40 > Betreff: [Ext] RE: Help getting Artemis to auto-delete empty/idle > queues > ------------------------------ > > > > Thanks > > > > > > *John Lilley * > > *Chief Architect, Redpoint Global Inc. * > > *888 Worcester Street, Suite 200 Wellesley, MA 02482* > > *M: **+1 7209385761* | *john.lil...@redpointglobal.com > <john.lil...@redpointglobal.com>* > > *From:* Justin Bertram <*jbert...@apache.org <jbert...@apache.org>*> > * Sent:* Monday, September 26, 2022 9:03 PM > * To:* *users@activemq.apache.org <users@activemq.apache.org>* > * Subject:* Re: Help getting Artemis to auto-delete empty/idle queues > > > > **** [Caution] This email is from an external source. Please use caution > responding, opening attachments or clicking embedded links. **** > > > > For what it's worth, screenshots (or any attachment for that matter) don't > come through the on mailing list. > > > > Can you provide your full broker.xml? > > > > > > Justin > > > > On Mon, Sep 26, 2022 at 5:40 PM John Lilley < > *john.lil...@redpointglobal.com.invalid*> wrote: > > We have a JMS-based application and are trying to upgrade from ActiveMQ > 5.15 to Artemis. > > However, I cannot seem to make Artemis auto-delete queues created by our > application. On the console, it seems pretty clear that the queues are > empty and idle: > > > > I’ve set everything I could think of in broker.xml to induce > garbage-collection: > > <auto-create-queues>true</auto-create-queues> > > <auto-create-addresses>true</auto-create-addresses> > > <auto-delete-queues>true</auto-delete-queues> > > <auto-delete-addresses>true</auto-delete-addresses> > > <auto-delete-created-queues>true</auto-delete-created-queues> > > <auto-delete-jms-queues>true</auto-delete-jms-queues> > > <auto-delete-queues-message-count>0</auto-delete-queues-message-count> > > > > And > > <address-queue-scan-period>10000</address-queue-scan-period> > > > > But nothing seems to matter, and I cannot find anything useful in the logs > with level set to TRACE. I do see a lot of entries like this: > > 2022-09-26 16:27:58,185 DEBUG > [org.apache.activemq.artemis.core.server.impl.QueueImpl] Scanning for > expires on rpdm_test_ddae4a8d405b48c2a8d2d7395d9fba31 > > 2022-09-26 16:27:58,186 DEBUG > [org.apache.activemq.artemis.core.server.impl.QueueImpl] Scanning for > expires on rpdm_test_ddae4a8d405b48c2a8d2d7395d9fba31 done > > But nothing that seems related to queue cleanup. > > > > Environment: > > Windows 10 > > OpenJDK 17 > > > > Maven dependency for Artemis JMS: > > <*dependency*> > <*groupId*>org.apache.activemq</*groupId*> > <*artifactId*>artemis-jms-client-all</*artifactId*> > <*version*>2.24.0</*version*> > </*dependency*> > > Any help appreciated! > > John > > > > > > > > *John Lilley * > > *Chief Architect, Redpoint Global Inc. * > > *888 Worcester Street, Suite 200 Wellesley, MA 02482* > > *M: **+1 7209385761* | *john.lil...@redpointglobal.com > <john.lil...@redpointglobal.com>* > > > PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is > confidential and is intended solely for the use of the individual(s) to > whom it is addressed. If you believe you received this e-mail in error, > please notify the sender immediately, delete the e-mail from your computer > and do not copy, print or disclose it to anyone else. If you properly > received this e-mail as a customer, partner or vendor of Redpoint, you > should maintain its contents in confidence subject to the terms and > conditions of your agreement(s) with Redpoint. > > > > PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is > confidential and is intended solely for the use of the individual(s) to > whom it is addressed. If you believe you received this e-mail in error, > please notify the sender immediately, delete the e-mail from your computer > and do not copy, print or disclose it to anyone else. If you properly > received this e-mail as a customer, partner or vendor of Redpoint, you > should maintain its contents in confidence subject to the terms and > conditions of your agreement(s) with Redpoint. [Anhang "broker.xml" > gelöscht von Herbert Helmstreit/RG/SYSTEMA/DE] > > > PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is > confidential and is intended solely for the use of the individual(s) to > whom it is addressed. If you believe you received this e-mail in error, > please notify the sender immediately, delete the e-mail from your computer > and do not copy, print or disclose it to anyone else. If you properly > received this e-mail as a customer, partner or vendor of Redpoint, you > should maintain its contents in confidence subject to the terms and > conditions of your agreement(s) with Redpoint. > > -- > <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.systema.com&c=E,1,Y7JePCXq8NZPvofD1UtIG94Td1S00vb1lDGAhUvd0r17Bm6Ww-XPQEzKdFvRPI-nsCKHBsPtgXdNGiqZXnR0g6gvyXc4KAPFd9CGQTnaIxgr7nFd2S-b&typo=1> > > Clebert Suconic > <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.systema.com&c=E,1,Y7JePCXq8NZPvofD1UtIG94Td1S00vb1lDGAhUvd0r17Bm6Ww-XPQEzKdFvRPI-nsCKHBsPtgXdNGiqZXnR0g6gvyXc4KAPFd9CGQTnaIxgr7nFd2S-b&typo=1> > > > PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is > confidential and is intended solely for the use of the individual(s) to > whom it is addressed. If you believe you received this e-mail in error, > please notify the sender immediately, delete the e-mail from your computer > and do not copy, print or disclose it to anyone else. If you properly > received this e-mail as a customer, partner or vendor of Redpoint, you > should maintain its contents in confidence subject to the terms and > conditions of your agreement(s) with Redpoint. >