tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gnath <gautam_exquis...@yahoo.com>
Subject Re: Tomcat 6.0.35 -crossing maxThreads configured count
Date Mon, 23 Jan 2012 14:27:44 GMT


Hi Andre, 

Sorry, my mistake. 


you are right. i actually meant milliseconds. However i checked my configuration again and
here is what i have :  ( I have the http connector configured at 20000 ms. and the secured
one left at default 60000 ms)


<Executor name="tomcatThreadPool"
                  namePrefix="catalina-exec-"
                  maxThreads="500"
                  minSpareThreads="50"/>

    <Connector enableLookups="false" executor="tomcatThreadPool"  port="http port"
 protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="https port" address="ip address"/>

    <Connector enableLookups="false" executor="tomcatThreadPool"  port="http port"
protocol="HTTP/1.1" SSLEnabled="true"
               scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" address="ip address"
               keystoreFile="path to cert" keystorePass="password" />


Please let me know if im doing any mistake or missing anything here.

Thanks
-G



________________________________
 From: André Warnier <aw@ice-sa.com>
To: Tomcat Users List <users@tomcat.apache.org> 
Sent: Monday, January 23, 2012 6:14 AM
Subject: Re: Tomcat 6.0.35 -crossing maxThreads configured count
 
André Warnier wrote:
> gnath wrote:
>> Hi all,
>> 
>> We have Tomcat 6.0.35 in our production Environment running on Linux, and we have
configured to use tomcatThreadPool with maxThreads=500 and minSpareThreads=50 with default
connectionTimeout(which is 60000 sec).
> 
> Which would be about 16 hours.  I am not sure of the meaning of connectionTimeout in
this context, but that value seems to me so large as to be pretty useless for any practical
timeout I can imagine.
> 

After checking the docs, that value is in milliseconds, not seconds :

connectionTimeout    

The number of milliseconds this Connector will wait, after accepting a connection, for the
request URI line to be presented. Use a value of -1 to indicate no (i.e. infinite) timeout.
The default value is 60000 (i.e. 60 seconds) but note that the standard server.xml that ships
with Tomcat sets this to 20000 (i.e. 20 seconds).

That sounds more reasonable.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message