activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kelley <>
Subject Re: Optimising PrefetchSubscription.dispatchPending() ideas
Date Fri, 21 Mar 2008 20:15:57 GMT

Hi David,

I'm new to ActiveMQ and unfamiliar with the code (albeit w/experience in
JMS), so forgive me if this is a silly question: do the performance
issues/fixes discussed affect non-durable subscriptions (w/non-persistent
messages) as well?


David Sitsky-2 wrote:
> Rob and I did some performance enhancements with queues so that a 
> Queue.send() call was decoupled from the dispatch processing.  In the 
> past, depending on the state of the consumers, a Queue.send() call could 
> take a significant amount of time.  We changed it so that a single 
> thread was responsible for dispatching messages, which avoided a lot of 
> lock contention.  It also meant a Queue.send() returned as quickly as 
> possible.
> I imagine a similar change could be done for Topics, since from what I 
> can tell, a Topic.send() call currently does its dispatch processing in 
> the same call.
> Cheers,
> David

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

View raw message