There no OOTB way to terminate a Thread. Actually, java in itself does not provide an OOTB way to kill a Thread! If the Thread is stuck processing request, your best solution is to stop and restart tomcat. Only way a Thread can exit in java is to exit the run() method of the Thread. If it's a tomcat Http Thread, it will also stop working a start sleeping when the servlet code has finished exectution (normaly or by throwing an uncatched exception). You could try your own methods that attempts to send a ThreadDeathException to a specific jvm thread, but methods for this are deprecated in java....

Note that, if your application is suck in Thread but request was disconnected, you should revise it's code so that is somehow detect it, or refuse too long operations.

En l'instant précis du 30/01/08 13:23, [EMAIL PROTECTED] s'exprimait en ces termes:
Hi ,all

The system is Tomcat 5.0.28 started as service, Win2003 . When I look at http://APPHOST/manager/status
There is a thread that is obviously stucked  - it's TIME column  grows up and 
up - much more than a number written in tomcat/webapp's web.xml.
I know the client who started it , and it's safe to terminate it.

Is there OOTB in Tomcat a way to kill a thread?
Or another manager/webapp/whatever which can make that sort of things - killing 
threads/sessions by force/hand ?

С уважение, / Best Regards,
ЯНКО МАРКОВ / YANKO MARKOV


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
http://www.devlog.be (a belgian developer's logs)



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to