activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liviu I." <>
Subject Configuring Memory Limit per Group of Queues
Date Wed, 22 May 2013 12:42:56 GMT

I need some help in configuring the memory usage in AMQ. I have a project
were we have configured memory limits per queue. We have done this to use
the ResourceAllocationException for throttling logic (on the client side).
So far this has worked for us without any problems.
But what I need now is to configure a single memory limit for a group of

I have 20 queues that can receive many messages that could have up to 4 MB.
These queues together need to share a memory limit of 32MB. The
"memoryUsage" set in the broker's config xml is 128MB. 

Placing a limit on each queue does not help because I could be receiving 8
messages on a single queue at any time, so just one queue could use the
entire 32MB of memory that I allow. 

A solution could be to set the limit for all these queues together and make
them share the 32MB memory limit. Is something like this possible? OR is
there a different and better solution to this scenario? 

I do need to mention that our project uses a large number of queues and I
need to configure just these ones, and that all of our messages are

Any help on how I can achieve this would be very much appreciated.

Thank You

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

View raw message