activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar1394 <>
Subject Cannot get slow consumers to discard messages
Date Tue, 02 Dec 2008 05:35:17 GMT

I'm using Active MQ 5.0 on a RedHat Linux system.

I have a number of slow consumers in my network, but I cannot get the slow
consumer policies to work.

I have set the PrefetchSize on the connection URL.


I have tried each of these: 

      <constantPendingMessageLimitStrategy limit="0"/>

       <prefetchRatePendingMessageLimitStrategy multiplier="1"/> 

And have tried various values for the maximum pending limit in my code with

        ActiveMQPrefetchPolicy prefetchPolicy = new

But in the JMX consoles, the entries for my subscribers show that
PrefetchSize STARTs at 1000, and then it climbs from there, rather than
remaining constant. On my slow consumers the DispatchedQueueSize grows until
it is huge -- certainly way beyond any of the limits I have set.  All the
DiscardCounts are always 0. 

This in in my activemq.xml file:

  <!-- Destination specific policies using destination names or wildcards

          <policyEntry topic="mpcs.>" producerFlowControl="false"
              <!-- <roundRobinDispatchPolicy/> -->
              <!-- <strictOrderDispatchPolicy/> -->


              <constantPendingMessageLimitStrategy limit="0"/>
<!--           <prefetchRatePendingMessageLimitStrategy multiplier="1"/> -->




Does this feature just not work?  Does anyone know?

-Marti DeMore

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

View raw message