Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 79231 invoked from network); 2 Jul 2009 22:08:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jul 2009 22:08:01 -0000 Received: (qmail 41548 invoked by uid 500); 2 Jul 2009 22:08:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 41467 invoked by uid 500); 2 Jul 2009 22:08:07 -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 41454 invoked by uid 99); 2 Jul 2009 22:08:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 22:08:07 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.191.84.76] (HELO smtp119.mail.mud.yahoo.com) (209.191.84.76) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Jul 2009 22:07:56 +0000 Received: (qmail 99423 invoked from network); 2 Jul 2009 22:07:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=2LnhzvYq6X6a+QGeE4INEQGzmYXoLxap7d/IpI0m72sCSoUW7AcbSdkbJ2yeNYtwfn4tMOa3UeCA9lDNRoNXNXqrad/GHRgPgMjPkViOXnCw4DyRcm9eOLUPWjCXV+eUlGejGlk+jUcpYIChnEPEGZlFaUHgPqq4GurFHCXktAM= ; Received: from unknown (HELO ?189.38.136.64?) (email_daniel_h@189.38.136.64 with plain) by smtp119.mail.mud.yahoo.com with SMTP; 2 Jul 2009 22:07:34 -0000 X-Yahoo-SMTP: PWv6n.aswBD.MCtjP6H1KrppYyvv6ANKFftr X-YMail-OSG: V1QtAi0VM1nAlyQ7lii5ahI3HJCTfQbFhUZoi7URab.eaTsizy9NoWmDK0lJ67GVyD8MguGiaoVK4s61u7dfpx611SU_9DvsxvelAonXxat2KaiVXtBKYTcyZ_Zz_PErFVs1EsMUBbBV_OO04l7x.mrhFsNNo2VnEoOMnRKxGBmwgo9evd0pM2Hhl4Ihig04w3s2uh1KOfhBvsiMwgiQakEn30ZdbjHrD2A8RS.ToCKLjxTY3MEABd6T7tErGXoas9UjQGDTItsEF9_X.y.dKWq3K9aGV1fG1fE92s6ZX0hqTSUG2am7DLvMnDZBoUcZ0Z9LPCNTCPQXU8lVx_QYsEE- X-Yahoo-Newman-Property: ymail-3 Subject: Re: POST request hangs hup From: Daniel Henrique Alves Lima To: Tomcat Users List In-Reply-To: References: Content-Type: text/plain Date: Thu, 02 Jul 2009 19:20:03 -0300 Message-Id: <1246573203.7681.13.camel@magnaopus.no-ip.biz> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-5.fc8) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 2009-07-02 at 23:40 +0200, Ivan Longhi wrote: > Hi, Hi, Ivan. > I'm running tomcat 6.0.18 with java 1.6.0_13 on a linux box. > The only webapp deployed is Sun OpenSSO (http://www.opensso.org) built from > source (20090930). > Sometimes a tomcat thread hangs hup while serving a POST request > (/UI/Login): monitoring tomcat > status I see the processing time grows and the thread never ends. When this > happens I am not able to shutdown > tomcat with shutdown.sh and I need to kill -9 the java process. > I think it is not a problem of memory exausted because if I run "top" the > memory usage by java process > is ok (a few hundreds MB despite CATALINA_OPTS="-Xmx6048M") but the cpu > usage is 100%. I think could be anything: An infinite loop in your app, a database (or other resource) deadlock, any intensive db query (with a really long transaction timeout). For instance, last month we've adopted a new Transaction Manager that keeps some threads (non daemons) running and prevents Tomcat of doing a "clean" stop. Now i'm "forcing" Tomcat to stop after 5 minutes waiting. My (little) experience tells me that in cases like this, your app is more guilt than your Application Server/Web Container. But it is just my 2 cents. []'s > -- "If there must be trouble, let it be in my day, that my child may have peace." Thomas Paine --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org