activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: ActiveMQ slow consumer policy
Date Thu, 20 Dec 2012 16:08:10 GMT
I had a peek that your code, the problem is on the broker.
The problem is that the prefetch value specified in broker config via the
policy entry is not enforced by stomp, so the default topic prefetch value
(maxInt-1) is in effect.
You could validate that via jconsole jmx on the broker, looking at the
topic subscriptions actual prefetch values. we want them to be 1

To workaround this, you need to specify the topicPrefetch via your client.
Either set the policy on the connection factory or via the brokerUrl nms.
url params.

A client supplied value will take effect and you should not see the build
up of messages on slow subscriptions.

I opened to track this.

On 19 December 2012 16:25, benj <> wrote:

> That would be really helpful - thank you!
> Here's a zip with the VS2012 solution containing producer/consumer
> projects,
> as well as my activemq.xml:
> <
> >
> I was running this between two machines, so you'll need to change the URI
> that the consumer connects to, unless your machine happens to be called
> benlaptop :-)
> Thanks,
> Ben
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at


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