Ian Bicking wrote:
> It's been a while since I've been in that code (ThreadedAppServer) but 
> no, I don't believe there's a way to detect wedged threads.  That would 
> be a nice feature.
How about this plan: as each thread starts a request we record the time 
processing begins in the thread object.  This could be used in two ways:

1. An admin servlet could present the status of all threads.

2. An external process could monitor the status of threads via 
MonitorHandler.  When it decides that the wedge factor is too great it 
issues SIGTERM to give non-wedged threads a chance to shutdown cleanly 
and then, after four seconds, sends SIGKILL.  It then immediately 
restarts the process.

I can't find any security in MonitorHandler.  Is there any?  What's to 
stop someone sending QUIT to my server?


   Oliver


_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to