tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: Tomcat keepAliveTimeout
Date Fri, 29 Sep 2006 18:08:08 GMT
I like the trick, it's smart, but I believe we could also achieve it 
with keep alive request limits, ie, when thread count gets high, turn 
off keep alive by mocking maxKeepAliveRequests="1"
ie, this way it doesn't affect the servlet and its usage of the stream.

Filip


Remy Maucherat wrote:
> Mladen Turk wrote:
>> semi useless, LOL :)
>> "when the number of threads gets lower, it tends to use fewer threads"
>
> Ok, it's the opposite: "when the number of threads gets higher, it 
> will try using fewer threads". Looking at the code will makes this 
> obvious.
>
>> I was talking about the soTimeout.
>> Actually when the number of threads gets higher the soTimeout should
>> get higher as well or at least be kept at the configured value.
>
> In that case, more threads will be used, which will exhaust the pool 
> extremely quickly.
>
>> With the current code you can not be sure what the actual timeout is.
>> It can be from soTimeout to soTimeout/20 without user having any clue.
>
> If it makes you happy, you can remove that little useless trick. It's 
> an experiment I did a long time ago, nothing less, nothing more. It's 
> also specific to the java.io connector, so it is not going to help or 
> hurt anyone.
>
> Rémy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message