ARTICLE AD BOX
I have a problem with Apache ActiveMQ Artemis where every time it starts up, it duplicates a couple of queues numerous times. When the duplicates are created, they are created with several thousands of messages. This is what is show in the log files for the broker:
2026-03-18 20:40:32,301 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue foo is duplicated during reload. This queue will be renamed as foo-0 2026-03-18 20:40:32,303 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue foo is duplicated during reload. This queue will be renamed as foo-1 2026-03-18 20:40:32,307 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-2 2026-03-18 20:40:32,307 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-3 2026-03-18 20:40:32,308 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue foo is duplicated during reload. This queue will be renamed as foo-4 2026-03-18 20:40:32,313 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue foo is duplicated during reload. This queue will be renamed as foo-5 2026-03-18 20:40:32,314 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-6 2026-03-18 20:40:32,315 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-7 2026-03-18 20:40:32,317 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-8 2026-03-18 20:40:32,319 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-9 2026-03-18 20:40:32,325 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-10 2026-03-18 20:40:32,327 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue foo is duplicated during reload. This queue will be renamed as foo-11 2026-03-18 20:40:32,327 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-12 2026-03-18 20:40:32,330 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-13 2026-03-18 20:40:32,332 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue foo is duplicated during reload. This queue will be renamed as foo-14 2026-03-18 20:40:32,335 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue foo is duplicated during reload. This queue will be renamed as foo-15 2026-03-18 20:40:32,337 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-16 2026-03-18 20:40:32,341 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue foo is duplicated during reload. This queue will be renamed as foo-17 2026-03-18 20:40:32,343 WARN [org.apache.activemq.artemis.core.server] AMQ222173: Queue bar is duplicated during reload. This queue will be renamed as bar-18The root queues were created using the FQQN syntax in Apache Camel, with wildcards. For example:
from("jms:topic:events.baz.#::foo"); from("jms:topic:events.baz.#::bar");Those routes continue to function normally, though the duplicate queues continue to increase in size, having no consumers. Other parts of our system also use that syntax, and have been using that syntax, with no issue. It's only an issue with this topic in particular. The duplicate queues cannot be removed, either by the management API or the HawtIO console -- it throws an error that they cannot be found. Neither does forcing a delete of the events.baz.# address work to prevent these queues from being created -- that command also fails to complete. They can, however, be purged using either method. Purging them does not delete them, but it at least gets rid of their messages for a time.
These duplicate queues are created with every restart of Artemis, even if all the applications that normally connect to Artemis are shutdown, meaning there are no consumers on any queues, topics, or addresses. The most I've seen so far is 50 copies of the queue being generated at startup.
How can I delete these queues and prevent this from happening again in the future?
