tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: apache/tomcat communication issues (502 response)
Date Thu, 09 Apr 2009 16:27:52 GMT
Caldarale, Charles R wrote:
>> From: André Warnier [mailto:aw@ice-sa.com]
>> Subject: Re: apache/tomcat communication issues (502 response)
>>
>> That is because a KeepAlive connection will keep a server child (or
>> thread) tied to that particular client connection, until the KeepAlive
>> expires, probably doing nothing most of the time.
> 
> But think about this in the context of a modern 64-bit server environment: what's wrong
with keeping these idle thread(s) around?  When process space was at a premium, it made sense
to trade off a little CPU time rebuilding connections versus chewing up the limited address
space; now that the resource limits are essentially gone, you might as well take advantage
of it.
> 
>> It would be better in most cases to have the client re-build a 
>> connection more often, and allow those server children/threads 
>> to take care of other requests in the meantime.
> 
> An idle thread costs very little (at least in a 64-bit world) - configure more of them.
> 
Mere curiosity :
You seem to imply that idle threads use less resources in the 64-bit 
world than (presumably) in a lesser-number-of-bit world.
Why is that ? Can you elaborate a little bit ?

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


Mime
View raw message