Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 79418 invoked from network); 20 Jan 2008 20:51:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2008 20:51:47 -0000 Received: (qmail 30073 invoked by uid 500); 20 Jan 2008 20:51:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 30046 invoked by uid 500); 20 Jan 2008 20:51:25 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 30034 invoked by uid 99); 20 Jan 2008 20:51:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jan 2008 12:51:25 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.106.242.101] (HELO mail.summerhost.net) (64.106.242.101) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jan 2008 20:51:12 +0000 Received: from ss.summerhost.net (ss.summerhost.net [64.106.242.102]) by mail.summerhost.net (Postfix) with ESMTP id C8068F4B91 for ; Sun, 20 Jan 2008 15:45:58 -0500 (EST) Received: from ss.summerhost.net (ss.summerhost.net [64.106.242.102]) by ss.summerhost.net (Postfix) with ESMTP id 8FCF53B81F for ; Sun, 20 Jan 2008 15:45:58 -0500 (EST) Received: from 69.22.229.55 (SquirrelMail authenticated user tc) by ss.summerhost.net with HTTP; Sun, 20 Jan 2008 15:45:58 -0500 (EST) Message-ID: <1126.69.22.229.55.1200861958.squirrel@ss.summerhost.net> In-Reply-To: <4793ADBA.4040004@oma.be> References: <1974.69.22.229.55.1200848596.squirrel@ss.summerhost.net> <4793ADBA.4040004@oma.be> Date: Sun, 20 Jan 2008 15:45:58 -0500 (EST) Subject: Re: Tomcat App becomes Unresponsive From: "tc" To: "Tomcat Users List" Reply-To: tc@summerhost.net User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Okay, sounds good. Thanks. Now if I could just figure out how to cause it to happen... > If you are on a UNIX jvm, issue a signal 3 (SIGQUIT) to the jvm process > when tomcat stops responding. It will dump on standard-out (normaly > redirected to catalina.out) the list of Threads with a stacktrace for > each. By invstigating stacktrace you will get clues as where the problem > is. I don't know if mysql is protected against deadlocks, but it may be > user1 locks ressource X, user2 locks ressource Y, user1 wait for Y to > free, user2 wait for X to free, all other users are waiting for X to > free, filling in the ThreadQueue, tomcat then look like unresponsive. > > Of course the same kind of concurrency issue can occurs with > synchronized{} blocks > > Note, you can also get such dump on windows, it requires you to press > magic key combinaison in JVM terminal (don't remember which) > tc a �crit : >> I have been asked to investigate a tomcat/java application. >> >> The basic problem is that this application sometimes becomes >> unresponsive >> if more than one user uses it at a time. Restarting Tomcat clears the >> problem. I don't think it has ever occurred when only one person was >> using the app. >> >> It is a fairly straight forward data-entry app; the data is stored in a >> mysql database. >> >> The developers think there may some issue with the database. They have >> also done multi-user testing without being able to reproduce the >> problem. >> >> I'm looking for pointers to any resources on the web or elsewhere that >> can >> help me track down the problem, or ideas about where to look, or what we >> can do to improve post-freeze diagnosis of this problem. >> >> I am also a developer, but I don't have a lot of experience with Java or >> Tomcat. I'm trying to bring a fresh perspective to this problem. >> >> Thanks. >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org