activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <>
Subject Re: reproduce a slow consumer bug
Date Mon, 04 Jun 2012 13:41:01 GMT
ActiveMQ comes bundled with quick, easy yet powerful Ant-based consumer and
producer scripts.
Look at the example/ directory of the base installation. Run "ant" there
and you'll get instructions.
Anyway, for your use case, this command would do the trick:

ant consumer -Durl=tcp:// -DsleepTime=10000000 -Dsubject= -Dtopic=true

That will start up a consumer that blocks 166 minutes between receive and
receive. Hopefully sufficient to simulate your scenario.


*Raúl Kripalani*
Principal Consultant | FuseSource Corp. | <>
skype: raul.fuse | twitter: @raulvk <>,


On 2 June 2012 22:49, JacobS <> wrote:

> Hi,
> We are currently using amq 5.5 in our product and we are facing a bug that
> causes one of our consumers to stop consuming messages, the problem is that
> this bug causes the entire topic to stop working. we added a
> 'pendingMessageLimitStrategy' and we wish to test if that solves the
> 'halted
> topic' problem.
> What is the best way to simulate a frozen topic consumer ?
> the consumer should be connected and active, but unable to consume messages
> , and hopefully the pendingMessageLimitStrategy would kick in and prevent
> the topic from slowing down.
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message