tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: [newbie] connectionTimeout value for AJP Connector
Date Wed, 10 Sep 2008 01:14:46 GMT

"Stacey Jones" <stcjones81@gmail.com> wrote in message 
news:3d645b7f0809090838vc8d6a01pc17845bfa1df790@mail.gmail.com...
> Hi, I am a new member on tomcat mailing list.
>
> For tomcat 5.5 - Is there a recommended value for connectionTimeout
> attribute? How to decide this value?
>
> The documentation says : The number of milliseconds this Connector will
> wait, after accepting a connection, for the request URI line to be
> presented. The default value is infinite (i.e. no timeout).
> Thanks for your help!
>
Like most configuration options, the recommended value depends on your setup 
:).  For small to medium sized applications on systems like Windows or 
Solaris the default value is reasonable (which is why it is the default). 
For Linux systems with newer kernals, this should be alright as well.  On 
these systems the cost is fairly low to have lots of threads blocking on 
i/o.  It is Linux systems with older kernals that cause problems.  Also if 
you are using the APR or (experimental) NIO AJP connector it should be fine 
on most o/s, since there is no relation between the number of connections 
and the number of threads.  If there isn't a firewall between Apache/IIS and 
Tomcat I would set it to be pretty high on well-behaved systems (at least 
5min for a medium sized app).  If there is a firewall, then it should be 
probably slightly less than the firewall setting to close idle connections.



 




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


Mime
View raw message