activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin C." <>
Subject Global memory limit for all queues / fileQueueCursor question
Date Tue, 17 Aug 2010 16:52:08 GMT


I'm a little bit confused by all the memory limit options available in
ActiveMQ, maybe someone could help me. I primarily send non-persistent
messages, and I'd like them to be spooled to disk in case a global memory
limit is reached.

Basically, I'd like to set a global limit of 256MB for all queues together
(not per queue) and I'd like to spool the non-persistent messages and the
cursor to disk.

At the moment, I am using the following configuration, but according to
JConsole, it seems like the limits are not propagated correctly to the
queues (e.g. JConsoles shows a memory limit of 256 on every queue) and I see
heap-usage around 400-600MB at the moment.

      <systemUsage sendFailIfNoSpace="true">
          <memoryUsage limit="256 mb" />

          <policyEntry topic=">" producerFlowControl="false">
          <policyEntry queue=">" producerFlowControl="false">
              <individualDeadLetterStrategy queuePrefix="DLQ."
                processExpired="true" processNonPersistent="false" />
              <fileQueueCursor />

Thanks in advance for any pointer if this is correct or how I'd need to
adapt this in order to achieve what I described above.

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

View raw message