activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benj <>
Subject Re: ActiveMQ slow consumer policy
Date Wed, 19 Dec 2012 10:52:04 GMT

Thanks for your reply.

I tried using the pendingMessageLimitStrategy, but I think I must be using
it wrong as it seems to have no effect. I still get a large queue of pending
messages on the server, while the client gets further and further behind.
What I'm expecting is for the server to discard messages and for the client
to see gaps in its stream, but never to fall too far behind.

I'm using apache-activemq-5.7.0 with apache.nms.stomp-1.5.3 on Windows

Here's my config:

    <broker persistent="false"
xmlns="" brokerName="localhost">
                <policyEntry topic=">">
                        <constantPendingMessageLimitStrategy limit="1"/>

I'm pumping short messages through at about 2000 messages per second, spread
evenly across 1000 topics.

I create the client first, and then run the server at 2000 msgs/s. I can see
the client receiving only about 500 messages per second (with large stutters
where it receives nothing for a few seconds). It appears to receive every
message in sequence, so nothing is being discarded. Meanwhile the server
gets further and further ahead, until the broker hits 1GB of main memory and
then slows the producer down.

Do I need to do something else to get the broker to discard messages more

Thanks again,


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

View raw message