activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <>
Subject Re: Slow message dispatch
Date Tue, 02 Sep 2014 18:32:16 GMT
Broker is non-persistent. I am sending very small messages and the measure
is only between when I send the message and at the other end when I receive
the message. Consumers and producers are not busy at this point.

I am not re-creating sessions, I am using thread local and I am caching
sessions. I am also not re-creating temp queues, that also gets cached
using thread local.

Should I profile activemq? Is there an easy tutorial on how to profile

On Thu, Aug 28, 2014 at 7:32 PM, artnaseef <> wrote:

> First, if the broker is using persistence, try turning off persistence
> (persistent=false in the broker tag).  If that eliminates the delay, it's
> related to storage.  If not, storage is not involved.
> Using a java profiler, such as Yourkit, also comes to mind.
> Is there any benchmark against which the 120ms is compared to determine it
> is a "long time"?  Also, are the producer and consumer both on the same
> server as ActiveMQ to rule out network latency?  And, is this delay seen
> consistently across a large number of produced and consumed messages?
> BTW - another thing to check - make sure the producer and consumer are not
> closing and recreating connections; ActiveMQ (like all JMS) connections are
> intended to be long lived, processing large numbers of messages in a single
> connection lifetime.
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

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