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
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
That's the point. There is NO WAY in a JVM to stop or kill an arbitrary
thread from outside. This is one of the main disadvantages in Java!!
Even unloading
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
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
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
Hi all,
I'm rolling out a successful Tomcat instalation in a shared environment ( it's a great software ! ). But I have a concern.
I created a servlet that loops forever ( a very stupid one, by the way). When I executed it, itallocates a Tomcat thread and it just runs forever. If I try to kill it
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
Hi all,
I'm rolling out a successful Tomcat instalation in a shared environment ( it's a great software ! ). But I have a concern.
I created a servlet that loops forever ( a very stupid one, by the way). When I executed it, itallocates a Tomcat thread and it just runs forever. If I try to kill
servlet - howto ? killing JVM or unload class
?
Hi all,
I'm rolling out a successful Tomcat instalation in a shared environment (
it's a great software ! ). But I have a concern.
I created a servlet that loops forever ( a very stupid one, by the way ).
When I executed it, it allocates a Tomcat
for PoolTcpConnector ? Anyone ?
Thanks !-Original Message-From: Renato Weiner [mailto:[EMAIL PROTECTED]]Sent: Monday, July 02, 2001 6:03 AMTo: [EMAIL PROTECTED]Subject: Killing endless loop servlet - howto ? killing JVM or unload class?Hi all, I'm rolling out a successful Tomcat instalation in a shared
10 matches
Mail list logo