I tried using this configuration below, and produce 1MB messages using "ant 
producer -Durl=tcp://localhost:61616 -Dtopic=false -Dsubject=queueName 
-Ddurable=true -DmessageSize=1048576.
However; the producer is not blocked till the storage is full.  Does 
"memoryLimit="1mb" in policyEntry work?

<destinationPolicy>
            <policyMap>
              <policyEntries>
                    <policyEntry queue=">" producerFlowControl="true" 
memoryLimit="1 mb">
                     </policyEntry>
              </policyEntries>
            </policyMap>
</destinationPolicy>
<systemUsage>
            <systemUsage>
                <memoryUsage>
                              <memoryUsage limit="2 mb" />
                </memoryUsage>
                <storeUsage>
                              <storeUsage limit="5 mb"/>
                </storeUsage>
                <tempUsage>
                              <tempUsage limit="1 mb"/>
                </tempUsage>
            </systemUsage>
</systemUsage>

From: Gunawan, Rahman (GSFC-703.H)[BUSINESS INTEGRA, INC.]
Sent: Tuesday, November 30, 2021 3:38 PM
To: users@activemq.apache.org
Subject: Policy entry queue memory limit question

When I have configuration like "<policyEntry queue=">" 
producerFlowControl="true" memoryLimit="1mb">", does it mean each queues will 
take up to total of 1 MB of messages before it starts blocking producer 
messages?

Thanks

Regards,
Rahman

Reply via email to