On 29/11/2010 22:21, Sylvain Laurent wrote:
> 
> On 29 nov. 2010, at 15:01, Mark Thomas wrote:
> 
>> On 29/11/2010 13:57, sol myr wrote:
>>> Hi,
>>>
>>> I'm new to Tomcat management, and would appreciate help on the 'maxThreads' 
>>> property of the Http Connector:
>>>
>>> 1) Please tell if I understood correctly:
>>> Suppose I configure 'maxThreads=100', and 130 users try to simultaneously 
>>> access my Tomcat - then 100 users will be served immediately, and the other 
>>> 30 will be put on hold? 
>>> Is this correct?
>>
>> Yes.
>>
>>> 2) Is there a way to monitor how many users are 'put on hold' (e.g. 50 on 
>>> the above example)?
>>
>> No. It happens too low down the network stack for Tomcat to be able to
>> get this information.
> 
> Mark, correct me if I'm wrong, but I believe that actually with an Executor, 
> the acceptor thread still accepts requests and enqueues them in a queue which 
> is unbounded by default. You can monitor the size of this queue with JMX 
> (attribute queueSize on the Executor's thread pool).
> What you refered to is when the acceptor thread does not keepup, the OS 
> enqueues new TCP connections attempts up to a maximum (100 by default for the 
> http basic IO connector).

Executors aren't used by default. I was referring to the tcp backlog.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to