activemq-users mailing list archives

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

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
queues. 

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
persistent.

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

Thank You
L. 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Configuring-Memory-Limit-per-Group-of-Queues-tp4667338.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message