Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 2173 invoked from network); 22 Dec 2003 06:30:23 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Dec 2003 06:30:23 -0000 Received: (qmail 63803 invoked by uid 500); 22 Dec 2003 06:29:49 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 63782 invoked by uid 500); 22 Dec 2003 06:29:48 -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 63769 invoked from network); 22 Dec 2003 06:29:48 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 22 Dec 2003 06:29:48 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AYJZn-00083m-00 for ; Mon, 22 Dec 2003 07:29:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AYJZm-00083e-00 for ; Mon, 22 Dec 2003 07:29:58 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AYJZm-0004L2-00 for ; Mon, 22 Dec 2003 07:29:58 +0100 From: "Bill Barker" Subject: Re: Tomcat threading questions Date: Sun, 21 Dec 2003 22:41:53 -0800 Lines: 38 Message-ID: References: <000001c3c846$960790d0$0302a8c0@dell5100> X-Complaints-To: usenet@sea.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N "Neil Aggarwal" wrote in message news:000001c3c846$960790d0$0302a8c0@dell5100... > Hello: > > I have a couple of questions about the way Tomcat uses threads: > > 1. If a thread does an infinite loop or other operation that > would cause it to wait forever, will Tomcat kill it? > If not, is there a way to do that? > If so, how would we control the timeout? Eventually the browser will drop the connection, and then if the Servlet tries to write anything, then an IOException will be thrown. However allowing the following code on your server will DoS: while(true) { Thread.Sleep(1000); } > > 2. Is there a hard limit on the number of threads like in > Apache or does it allocate up to maxProcessors no matter > how large it may be? > The thread allocation is pretty similar to Apache/httpd. > Thanks, > Neil > > > -- > Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com > FREE! Valuable info on how your business can reduce operating costs by > 17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org