You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by wuwufen <17...@qq.com> on 2016/02/03 01:39:08 UTC

resend :how to config the max number of message that activemq keeped

hey friend
 i tyed the "<constantPendingMessageLimitStrategy limit="10"/>" but it seems
dosn't work.
1   durable subscribe cliend offline
2   send more than 100 messages to the topic
3   durable subscribe cliend  online
4   the client still receive all the 100 messages i send.i just want to
receive the   latest 10 messages.

did i do something wrong or forget something?

activemq    5.12.0
cliend         org.fusesource.mqtt



thank you





--
View this message in context: http://activemq.2283324.n4.nabble.com/resend-how-to-config-the-max-number-of-message-that-activemq-keeped-tp4706821.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: resend :how to config the max number of message that activemq keeped

Posted by Tim Bain <tb...@alumni.duke.edu>.
The section of http://activemq.apache.org/slow-consumer-handling.html about
ConstantPendingMessageLimitStrategy says "This strategy uses a constant
limit for all consumers (above their prefetch size)".  What is your
consumer's prefetch size?
On Feb 2, 2016 6:03 PM, "wuwufen" <17...@qq.com> wrote:

> hey friend
>  i tyed the "<constantPendingMessageLimitStrategy limit="10"/>" but it
> seems
> dosn't work.
> 1   durable subscribe cliend offline
> 2   send more than 100 messages to the topic
> 3   durable subscribe cliend  online
> 4   the client still receive all the 100 messages i send.i just want to
> receive the   latest 10 messages.
>
> did i do something wrong or forget something?
>
> activemq    5.12.0
> cliend         org.fusesource.mqtt
>
>
>
> thank you
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/resend-how-to-config-the-max-number-of-message-that-activemq-keeped-tp4706821.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>