activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <>
Subject Re: Topic Memory Increases until broker dies
Date Thu, 27 May 2010 18:28:18 GMT
On Mon, May 24, 2010 at 1:50 PM, E White <> wrote:
> I could never reproduce this effectively in the office, but it happened again
> in production.
> Here is the thread dump from when this occurred.
> sfire-amq-td.log

I don't see anything out of the ordinary in the thread dump. But with
thread dumps you need 3-5 of them that are spaced apart a bit so that
you can see some changes over a short period of time.

The inflight count is the number of messages sent to a given
consumer's session. The number of messages sent to a consumer is
directly affected by the prefetch size described here:

How many consumers do you have on the topic? Are any of these
consumers possibly processing messages slowly? Do these consumers use
a prefetch size to limit the number of messages sent to them in a
given dispatch? This will cause the broker not to send so many
messages in a given dispatch to the consumer and can help slow

To answer your question related to message expiration, setting the
timeToLive on a message will cause that message to expire after that
amount of time.

Another strategy is to use a message limit strategy or an eviction strategy:

perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"

ActiveMQ in Action:

View raw message