tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32319] - Idle connection disconnect - free waiting tomcat threads
Date Sun, 28 Nov 2004 00:25:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32319>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32319





------- Additional Comments From rainer.jung@kippdata.de  2004-11-28 01:25 -------
'check' renamed to 'maintain' OK

time(NULL) called globally OK

diff -u attached

close_idle_endpoints function: closes all endpoints of a worker from inside the
maintain call, if the endpoint was not used at least idle_timeout seconds
(default: disabled).

Note:

1) All changes are included inside "defines":
KPDT_MAINTAIN_HOOK: add maintain hook
KPDT_IDLE_TIMEOUT: add idle timeout (needs also KPDT_MAINTAIN)
KPDT_BUG_FIX: some very small bug fixes
KPDT_DEBUG: Adds more debug log output (not for production)

2) I didn't have the time to compile and test. Since I changes the names (check
-> maintain) and the position of the time() calls, I might have introduced
errors. I will not be able to test before wesdnesday. The original code was OK
and is productive.

3) I'm not sure, if there are implications for multi-threaded use, e.g. Apache
2.0. I think wc_maintain has to be checked.

4) To use the feature:

Define attribute maintain_interval (seconds) for the workers in the worker list
in workers.properties. If you are using a load balancing worker, you only have
to define the attribute for the lb itself.

Define attribute idle_timeout (seconds) for all the ajp13 or ajp14 workers used.
Whenever a request processed and maintain_interval has passed for any worker in
the worker list, if the worker is ajp13 or ajp14 and the connections is idle for
longer then idle_timeout, is it closed. If the worker is lb and any of its
balanced workers is ajp13 or ajp14 and idle for more than its idle_timeout, its
connections is also closed.

I hope this is understandable ;)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message