activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject OOME - ActiveMQMessageConsumer.unconsumedMessages
Date Wed, 30 Apr 2008 23:02:03 GMT
There doesnt seem to be a way of limiting how messages are delivered to 
the client.
the ActiveMQMessageConsumer.unconsumedMessages seems to fill up, all to 
quickly, and eventually cause an OOME

we have this setting on the server
<destinationPolicy> 
      <policyMap>
        <policyEntries>
          <policyEntry topic=">" producerFlowControl="false" 
memoryLimit="10mb">
            <deadLetterStrategy> 
              <sharedDeadLetterStrategy processExpired="false" 
processNonPersistent="false" /> 
            </deadLetterStrategy>
            <!--  10 seconds worth -->
            <!-- lets force old messages to be discarded for slow 
consumers -->
            <pendingMessageLimitStrategy>
              <constantPendingMessageLimitStrategy limit="1000"/>
            </pendingMessageLimitStrategy>
          </policyEntry>       
        </policyEntries>
      </policyMap>
    </destinationPolicy>


is there another setting to protect against this kind of OOME

Filip

Mime
View raw message