Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 61138 invoked from network); 8 Dec 2004 03:50:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 03:50:28 -0000 Received: (qmail 80573 invoked by uid 500); 8 Dec 2004 03:50:05 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 80555 invoked by uid 500); 8 Dec 2004 03:50:05 -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 80542 invoked by uid 99); 8 Dec 2004 03:50:05 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from lan-202-144-61-68.maa.sify.net (HELO delmail1.sapient.com) (202.144.61.68) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Dec 2004 19:50:03 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Threads issues in Tomcat 5.0.28 Date: Wed, 8 Dec 2004 09:19:57 +0530 Message-ID: <9D5AD7C0D9B82045B86F632FE86BA3C80240A9B0@delmail1.sapient.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Threads issues in Tomcat 5.0.28 Thread-Index: AcTczh8LXNSPb73IT1mElYeUoi2cxQACi5WQ From: "Arnab Chakravarty" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hey, I see your problem similar to mine some time in the past. What you need to is the following: - Lower the number of threads and keep it close to 120-150 threads. - Are you using a database, if yes, check if the DB connection pool is the bottleneck - Yes, you can find what the 200 threads are doing by taking a threaddump. The way to do this is to use the command - kill -QUIT . Hope this helps. Arnab -----Original Message----- From: Matt Robinson [mailto:matthewbrobinson@yahoo.com]=20 Sent: Wednesday, December 08, 2004 8:02 AM To: tomcat-user@jakarta.apache.org Subject: Threads issues in Tomcat 5.0.28 Hi,=20 We have 5 instances of Tomcat 5.0.28 running on their own high performance servers (dual XEON / 2GB RAM, etc) receiving AJP13 connector requests via our main web server which has IIS 5, IIS redirector, and Tomcat4. This works great even under high loads except for one thing: after several hours of usage (could be 3 hours or up 24 hours), the number of Tomcat threads on the 5.0.28 systems will suddenly increase at a rapid rate until Tomcat no longer responds to requests. It will hit the max # threads (which defaults to 200) and essentially freeze until it is restarted. This is strange because this behavior does not seem to correspond to increased usage of the particular server it occurs on. We are not sure what is triggering this and what those Tomcat threads are waiting on [they remain busy, waiting and unable to be reused by Tomcat]. My questions are: 1. Has anyone else experienced this kind of Thread explosion problem? 2. Is there a way to find out exactly what each Tomcat Thread is doing/waiting for? 3. Is there a way to periodically clear Tomcat's threadpool -- i.e. get rid of waiting/busy/unusued threads. We are working on ways to automatically restart Tomcat once a certain # of threads is reached, but this is not an acceptable solution, only a temporary workaround of course. Many thanks in advance =09 __________________________________=20 Do you Yahoo!?=20 Take Yahoo! Mail with you! Get it on your mobile phone.=20 http://mobile.yahoo.com/maildemo=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org