Kevin J. Rice wrote:
> 1. Can we find the current running request for each thread, when that
> request started, and view the queue of requests not yet assigned to
> any thread?

The pending request are in the application._server._requestQueue. You 
can also find in the _processing attribute whether a thread is currently 
processing a request. But it seems you cannot find which request handler 
is currently processed by that thread.

> 2. Can we automatically identify a request being processed for more
> than a certain amount of time and terminate that request? This is a
> sort of a timeout setting concept.

If you could get the request handler associated with a thread, then you 
could get its starting time from its _startTime attribute and you could 
terminate the thread if it takes too long. But as I said I think the 
former is not possible.

The code is in ThreadedAppServer. If you have ideas for improvement, let 
me know.

-- Christoph

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to