How "gcInactiveDestinations" works with ActiveMQ ?

Solution Unverified - Updated -

Issue

  • I have enabled gcInactiveDestinations like :
    <broker xmlns="http://activemq.apache.org/schema/core"
        brokerName="${broker-name}" dataDirectory="${data}" start="false"
        restartAllowed="false" schedulePeriodForDestinationPurge="10000">

        <destinations>
                 <queue physicalName="FOO.BAR" />
                 <topic physicalName="SOME.TOPIC" />
         </destinations>

         <destinationPolicy>
            <policyMap>
            <policyEntries>
                                 <policyEntry queue=">" producerFlowControl="true"  memoryLimit="1mb" gcInactiveDestinations="true"   inactiveTimoutBeforeGC="30000"/>
            </policyEntries>
        </policyMap>
    </destinationPolicy>
  • Will it delete only inactive empty queues or delete inactive queues with messages ?

Environment

  • Red Hat JBoss A-MQ
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content