activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Mielke <>
Subject Re: dedicatedTaskRunner threads reductions
Date Mon, 20 Jan 2014 11:15:48 GMT
Apologies I was wrong in my previous email. 
With dedicatedTaskRunner=false you are not going to use one thread per JMS destination but
use a pool of threads for dispatching messages. The brokers thread count should get reduced
in general but you may only notice a bigger difference if you have a higher number of destinations.


Torsten Mielke

On 20 Jan 2014, at 12:13 pm, Torsten Mielke <> wrote:

> Hello,
> When you disable dedicatedTaskRunner the broker uses an internal thread pool just as
you mentioned already. 
> A thread from the pool will only be used when there is activity on the connection and
will be returned to the pool when the connection is idle. 
> So it will not use one thread per connection (only one thread per active connection)
and generally the thread count should get reduced. 
> Hope this helps,
> Torsten Mielke
> On 17 Jan 2014, at 09:48 am, khandelwalanuj <> wrote:
>> Hi,
>> Reference:
>> If we disable "dedicatedTaskRunner", we can use ActiveMQ internal thread
>> pool to control message dispatching. Using a thread pool can restrict the
>> number of threads required by ActiveMQ and hence reduce memory usage.
>> Question:  I disable "dedicatedTaskRunner", Will there not be one thread per
>> connection ?  Which threads will be reduced.
>> Thanks,
>> Anuj

View raw message