activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Pernas <>
Subject Problem expired messages for durable consumers in 5.6
Date Fri, 28 Sep 2012 07:00:00 GMT
Hi all,

I have several durable consumers that could be disconnected some time.
I have a high traffic load, so if there are one or more durable
consumers disconnected, Im running into a java heap error (no space).

I'm sending messages with timeToLive property to 60000 ms (sets in the
message), and I've set broker option expireMessagesPeriod less than
30000 ms.

Why message are not discarded? why the fileDurableSubscriberPolicy
doesnt throw messages to the persistent file and finally runs into an

My configuration for topics is this:

<policyEntry topic=">" expireMessagesPeriod="40000"
producerFlowControl="false" memoryLimit="1 gb">
           <sharedDeadLetterStrategy processExpired="false" />
          <fileCursor />
   	  <constantPendingMessageLimitStrategy limit="1000"/>

With this memory settings:

                    <memoryUsage limit="1 gb"/>
                    <storeUsage limit="10 gb"/>
                    <tempUsage limit="1 gb"/>


Óscar Pernas Plaza.

View raw message