Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 52182 invoked from network); 18 Jun 2003 10:56:01 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Jun 2003 10:56:01 -0000 Received: (qmail 11839 invoked by uid 97); 18 Jun 2003 10:58:19 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 11832 invoked from network); 18 Jun 2003 10:58:18 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 18 Jun 2003 10:58:18 -0000 Received: (qmail 50606 invoked by uid 500); 18 Jun 2003 10:55:40 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 50593 invoked from network); 18 Jun 2003 10:55:40 -0000 Received: from sid.armstrong.com (204.74.20.252) by daedalus.apache.org with SMTP; 18 Jun 2003 10:55:40 -0000 Received: from joedog.org (pcp01470022pcs.lncstr01.pa.comcast.net [68.82.237.147]) by sid.armstrong.com (8.12.8p1/8.12.8) with ESMTP id h5IAoDM0018543 for ; Wed, 18 Jun 2003 05:50:13 -0500 Message-ID: <3EF04527.30404@joedog.org> Date: Wed, 18 Jun 2003 06:55:35 -0400 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How to stop execution of infinite loop in Tomcat ? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N AFAIK, no. If the JSP/servlet was writing to stream - the browser closing the connection could trigger an IO eventually. Of you can "luck out" with a recursive loop and end up with a stack overflow. But if you are in a tight loop like this: while(true) { int foo=1; } Then you are out of most likely luck. Killing threads in the JVM is "unsafe". See the java.lang.Thread for details why. -Tim anto paul wrote: > Hi > Is there any way to stop the execution of a JSP page on a remote server > ? Today by mistake I wrote code which print inside a while loop. By mistake > I increased the counter instead of decreasing it. How I can stop the > execution of the page. Tomcat is running in another machine which I have no > physical access. > Regards > Anto paul > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org