Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9B06745C for ; Thu, 11 Aug 2011 23:12:49 +0000 (UTC) Received: (qmail 8218 invoked by uid 500); 11 Aug 2011 23:12:48 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 8160 invoked by uid 500); 11 Aug 2011 23:12:47 -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 8152 invoked by uid 99); 11 Aug 2011 23:12:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 23:12:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of phil.steitz@gmail.com designates 209.85.210.47 as permitted sender) Received: from [209.85.210.47] (HELO mail-pz0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 23:12:39 +0000 Received: by pzk2 with SMTP id 2so6175816pzk.34 for ; Thu, 11 Aug 2011 16:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=izTdgIoGKxMHWIehrVJPUaM9N2nGCxw6ai1eoO3+CNs=; b=NnAL4+3Hywk39aa8XOPDienbFBrbcocUpmOMDP/lJZYoKQRtTqv7PxmMQr+q5KtZ94 +OG6ZwySyjaBtA0tZXlfeqYSlBvIyQZc05q5jV8Xh8I443Cd+kRPEDxcH3jmnFMhXj0L 7lspv0eq6UiFdKeEST+8Wozjiyb6n9p/MWpNY= Received: by 10.142.14.9 with SMTP id 9mr113471wfn.89.1313104339437; Thu, 11 Aug 2011 16:12:19 -0700 (PDT) Received: from [192.168.0.2] (71-223-173-130.phnx.qwest.net [71.223.173.130]) by mx.google.com with ESMTPS id m6sm1201112wfk.11.2011.08.11.16.12.16 (version=SSLv3 cipher=OTHER); Thu, 11 Aug 2011 16:12:18 -0700 (PDT) Message-ID: <4E4461CE.2050401@gmail.com> Date: Thu, 11 Aug 2011 16:12:14 -0700 From: Phil Steitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Commons Users List Subject: Re: [dbcp] pool exhuasted References: <673C09F7CF4F6948B6DE09EC310E67409A5A973A86@NA-MAIL-1-3.rws.ad.ea.com> <673C09F7CF4F6948B6DE09EC310E67409A5A973DB1@NA-MAIL-1-3.rws.ad.ea.com> In-Reply-To: <673C09F7CF4F6948B6DE09EC310E67409A5A973DB1@NA-MAIL-1-3.rws.ad.ea.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 8/11/11 4:00 PM, Ji, Jason wrote: > Hi Guys, > I see this exceptions in our production : > > > Caused by: java.sql.SQLException: Cannot get a connection, pool error: Pool exhausted > at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:188) > at java.sql.DriverManager.getConnection(DriverManager.java:582) > at java.sql.DriverManager.getConnection(DriverManager.java:207) > > we use mysql and we set the maxconnections to 100 > when the problem happens , we checked the db connection from mysql by running this : > mysql> show full processlist; > and we only see 4 connections on mysql . > > so apparently there is no connection leak , since the there are only 4 connecitons on mysql and our maxiConnections size is 100. > > Restarting the app fixed the problem ,and during the problem happens ,the traffic didn't peak . > > Does anyone happen to run into the same situation ? or any suggestions ? > Is there any known bug that similar to this , say the counter is miscounted or something else ? > We use version 1.4 . Are you sure your application is closing all of the connections that it borrows from the pool? Most likely, your application actually is leaking connections; but the physical connections are being closed on the server side. Phil > > > Thanks, > Jason > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org