activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayachandrakukidi <>
Subject Limit the activemq queue size
Date Tue, 29 Sep 2015 10:32:19 GMT
Hi ,
Here after 5 days i found a valid answer for limit the queue size in

Step 1: need to change the destination policy as bellow
                        <policyEntry queue=">" producerFlowControl="true"
memoryLimit="10 kb"/>
		  <policyEntry queue=">" expireMessagesPeriod="1000">
Step 2: once the publishing messages are exceeding the queue size it jvm
will allocate the tempUsage to queue for restricting the temp size we use
bello settings

		<systemUsage sendFailIfNoSpace="true">   
                                   <tempUsage limit="50 kb"/>

Step 3: restart your activemq, try to publish messages up to 10 kb memory
limit if messages size exceeds the queue limit it will show the bellow
exception in activemq log.

javax.jms.ResourceAllocationException, which will propagate to the client.

View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message