Hi,

I'm running a network of brokers (activemq 5.9.1) with a continuous flow of
unique short lived topics.

I'm configuring the policyEntry with gcInactiveDestinations="true" but it
looks like these destinations are not being garbage collected even though
they have no regular consumers as I'm seeing the number of topic threads
rise continuously over the lifetime of the app.

Having a poke around in the code I can see another property which is not
documented 'gcWithNetworkConsumers'. It looks like without this set to true
the consumers from the cluster will be treated as regular consumers and
keep the destination active.

https://github.com/apache/activemq/blob/5667e4ddcc44e1331cafea2c1537afeaa550a2cd/activemq-broker/src/main/java/org/apache/activemq/broker/region/BaseDestination.java#L300

Am I correct in thinking I need to set gcWithNetworkConsumers=true to
enable gc?

Thanks,

Jack

Reply via email to