Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 11880 invoked from network); 12 Nov 2009 17:14:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 17:14:37 -0000 Received: (qmail 56383 invoked by uid 500); 12 Nov 2009 17:14:35 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 56277 invoked by uid 500); 12 Nov 2009 17:14:35 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 56267 invoked by uid 99); 12 Nov 2009 17:14:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 17:14:35 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [81.103.221.48] (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 17:14:25 +0000 Received: from know-smtpout-1.server.virginmedia.net ([62.254.123.1]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20091112171400.BDMD27507.mtaout02-winn.ispmail.ntl.com@know-smtpout-1.server.virginmedia.net> for ; Thu, 12 Nov 2009 17:14:00 +0000 Received: from [66.78.217.139] (helo=s2laptop-7.local) by know-smtpout-1.server.virginmedia.net with esmtpa (Exim 4.63) (envelope-from ) id 1N8dFA-0001AG-48 for user@commons.apache.org; Thu, 12 Nov 2009 17:14:00 +0000 Message-ID: <4AFC4256.60802@apache.org> Date: Thu, 12 Nov 2009 12:13:58 -0500 From: Mark Thomas User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Commons Users List Subject: Re: DBCP deadlock References: <7818B6A2-A7FD-4DB5-AF54-7DDDD478A10A@logemann.org> <4AFBCFB9.2040501@free.fr> <75914213-6D25-4414-AD25-B4DDC80BC3AA@logemann.org> <23A7C19C-0734-4A15-B207-F189574DBA2D@logemann.org> <4AFC068E.9010908@apache.org> <9F567EB0-2E9C-4533-B54F-96845A727481@logemann.org> In-Reply-To: <9F567EB0-2E9C-4533-B54F-96845A727481@logemann.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.0 c=1 a=ADduyqxPKZs9kuo8Cp0A:9 a=J_uLwhUzXaZHkbL1KSD0nkw8s6wA:4 X-Virus-Checked: Checked by ClamAV on apache.org Marc Logemann wrote: > Hi, > > its a deadlock as also Cyrille pointed out. No, it isn't. > There is no exhaustion Yes there is. Look at the source code for the line you quoted: at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:810) That is the wait() call in case WHEN_EXHAUSTED_BLOCK: Every thread in your thread dump that referenced commons.pool (all six of them) was stuck at that point. It looks very much like your pool was exhausted previously or is still exhausted. > because as i said, there a 3 of 30 DB connections active on the DB > Server. Which indicates that you likely have a connection leak. > I even defined all those *Abandoned Timeouts and stuff w/o any > difference. Interesting. I'm surprised you didn't see something in catalina.out. It is probably worth checking the configuration you were using for that. > Will try commons-pool 1.4 to see if it solves the problem. I > am quite sure that 1.4 solves the issue because you cant have a monitor > on a method thats not syncronized ;-) So lets see how that goes.... It is going to depend on what the root cause is. If you are going to upgrade then I'd suggest going for the latest (1.5.3) as it fixes a number of dead-lock issues known to exist in 1.4 as well as offering fairer object allocation. This should enabled the exhausted pool situation to be handled better. Be aware there is a known issue in 1.5.3 that will be fixed shortly in 1.5.4. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org