Re: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-12 Thread Dmitri Colebatch
On Thu, 12 Jul 2001 16:28, you wrote: I thought the problem with threads was that you actually _cannot_ kill them, even in Java. I find this stupid, and hope I'm wrong! But apparently you can only ask the thread to interrupt and check for status by using the thread.interrupt(), and

Re: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-12 Thread Renato Weiner
Hi, Actually I'm testing some time-out features of Tomcat. Users eventually ended up doing endless loops ( like, forgetting to move to nextline in a databaserecord set...). So, what I'm trying to see if there is a patch that could kill the 'offending' threads after a defined time interval. Thanks

Re: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-12 Thread Renato Weiner
Message - From: "Endre Stølsvik" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Thursday, July 12, 2001 10:50 AMSubject: Re: Killing endless loop servlet - howto ? killing JVM or unload class ? On Thu, 12 Jul 2001, Dmitri Colebatch wrote: | On Thu, 12 Jul 2001 16:28, y

Re: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-12 Thread Dmitri Colebatch
Hi, On Thu, 12 Jul 2001 18:50, Endre Stølsvik wrote: How would you stop this thread? while(true); something like this: import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class TestServlet extends HttpServlet { private

Re: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-11 Thread Dmitri Colebatch
Does it intentionally loop forever? If so, creating a new thread and having that do the work (hence returning tomcat's thread to the server) should do the trick. cheers dim On Sat, 30 Jun 2001 07:28, you wrote: Hi all, I'm rolling out a successful Tomcat instalation in a shared

RE: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-02 Thread William Kaufman
OK, no one's answered this yet, so,... First, I don't know if it's killing a thread is the right approach. Should I do that, without shutdown Tomcat ? So, why are you creating an infinite loop? I mean, if you didn't, you wouldn't have to kill it. If you're generally asking how one can kill

RE: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-02 Thread Renato Weiner
OK, no one's answered this yet, so,... First, I don't know if it's killing a thread is the right approach. Should I do that, without shutdown Tomcat ? So, why are you creating an infinite loop? I mean, if you didn't, you wouldn't have to kill it. The problem is my environment. Since this is a