> From: Amit Bhargava [mailto:[EMAIL PROTECTED] 
> Subject: Re: Current thread count monitoring
> 
> My understanding is that 'maxThreads' determines how many 
> threads will be created by the Connector to deal with 
> requests.

That's the maximum number of threads for the <Connector>; if there are
fewer active requests than that, there will be fewer threads in the
pool.

> After this, 'acceptCount' determines the number of threads 
> which will be allowed to wait in queue.

No, it's the number of *requests* that wait in the queue, until one or
more threads become available to process them.

> So is the current queue length that I am looking for  
> CurrentThreadCount - maxThreads?

No.  I don't believe there's a means of determining the number of
requests in the queue since the waiting requests are sitting in the
TCP/IP stack, not in Tomcat (I think - I haven't looked at that area of
the code, and it may vary depending on the connector class).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to