-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
AMQ 7.4.3.GA
-
None
-
False
-
False
-
-
Undefined
-
-
-
When the prometheus metrics plugin is installed and enabled, creating and destroying non-durable topic subscribers results in a leak of org.apache.activemq.artemis.core.server.impl.QueueImpl objects referenced by the MetricsManager, even though the addresses and queues no longer appear in the JMX tree for the broker:
4,202 instances of "org.apache.activemq.artemis.core.server.impl.QueueImpl", loaded by "java.net.URLClassLoader @ 0x80100000" occupy 33,971,848 (28.24%) bytes. These instances are referenced from one instance of "org.apache.activemq.artemis.core.server.metrics.MetricsManager", loaded by "java.net.URLClassLoader @ 0x80100000"
One instance of "io.micrometer.prometheus.PrometheusMeterRegistry" loaded by "java.net.URLClassLoader @ 0x80100000" occupies 31,535,000 (26.22%) bytes. The memory is accumulated in one instance of "io.micrometer.prometheus.PrometheusMeterRegistry" loaded by "java.net.URLClassLoader @ 0x80100000".
This issue does not seem to occur in later versions of the broker (7.5+) or with the plugin commented out.