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
outOfMemory?

My configuration for topics is this:

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

With this memory settings:

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

Regards!

-- 
Óscar Pernas Plaza.

Reply via email to