activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oliver49 <>
Subject Re: Re: What is the effect of dedicatedTaskRunner Attribute?
Date Wed, 12 Feb 2014 08:39:07 GMT
When setting optimizedDispatch the transport thread will directly do the
dispatch to queue, otherwise a broker task thread does it.

If you want to get a better understanding you can either dig into code or
(simpler) look at some traces, e.g. setting DEBUG level trace for:, org.apache.activemq.thread,
Then process a message and look at the log output including thread names for
certain actions.

The task threads in the thread dump are named as BrokerService[mqbrokerdev]
Task-1, Task-2.

Regarding thread reduction. You will not see this directly in the thread
overview as the threads are created on demand and might be gone already
doing the thread dump. Setting UseDedicatedTaskRunner=true creates a
dedicated thread for each task. Setting it to false uses a PooledTaskRunner
and a thread from a thread pool.
The difference is only obvious in the thread dump if there is really a lot
of traffic on the broker.

By the way. If org.apache.activemq.UseDedicatedTaskRunner is not explicitly
set to true, then thread pooling will be used.

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

View raw message