activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pclovec <pclo...@gmail.com>
Subject pendingmessagelimit option seems doesn't work!
Date Wed, 11 Mar 2009 01:40:09 GMT

fast producer -> slow consumer set up here with durable conmuser and a 
topics by NMS(donet)
i try to test MaxPendingMessageLimit this option. i  do this list
write the code in producer and durable conusmer side setup the 
session.Perfetch=10 ;
session.MaxPendingMaxlimit=20 ;
1. running producuer continue send message to topic
2. running consumer get 10 message after done.(now the consumer is stopped
and producer still send message to topic)
3. check the topic size and durable conusmer on web interface,
my pendingqueuesize(durable subscription) and mem still goes to grow. 

seems the Perfetch is works , but MaxPendingMessageLimit doesn't work. 
 
i try to uses another way to test it. change the activemq.xml config file
i go to activemq.xml to setup all topic policy , PendMessageLimie option.
but seems still doesn't work. 

do i missing something or this option can't work with durable consumer?
please advise.
<destinationPolicy>
         <policyMap>
              <policyEntries>
                   <policyEntry topic=">">
                           <dispatchPolicy>
                             <strictOrderDispatchPolicy />
                            </dispatchPolicy>
           <pendingMessageLimitStrategy> 
              <constantPendingMessageLimitStrategy limit="10"/> 
            </pendingMessageLimitStrategy> 

                    </policyEntry>
            </policyEntries>
       </policyMap>
</destinationPolicy
 




-- 
View this message in context: http://www.nabble.com/pendingmessagelimit-option-seems-doesn%27t-work%21-tp22447336p22447336.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message