On 26/04/2019 06:25, Supun Abeysinghe wrote:
> Hi all,
> 
> 
> I am working on a project which tries to tune the Tomcat thread pool
> dynamically by looking at runtime characteristics in order to enhance the
> system performance. To get a better understanding, I have gone through the
> Tomcat source code and found out that it uses ThreadPoolExecutor. It maps
> minSpareThreads parameter to corePoolSize and maxThreads parameter to
> specify the maximum thread pool size. However, I'm having trouble
> understanding how to specify the queue length. This is not the acceptCount.
> I'm talking about the size of the BlockingQueue (work queue) which is used
> inside the ThreadPoolExecutor. As per my understanding, the BlockingQueue
> (work queue) and the request queue (of which the size is specified using
> the acceptCount parameter) are two different queues (am I wrong here? are
> both the same?).
> 
> My Question is, how to specify the length of the BlockingQueue (work queue)
> using Tomcat parameters? Is there any JMX MBean that reports this queue
> size?

StandardThreadExectuor
maxQueueSize

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to