Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 86088 invoked from network); 3 Dec 2008 07:28:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2008 07:28:31 -0000 Received: (qmail 62893 invoked by uid 500); 3 Dec 2008 07:28:38 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 62833 invoked by uid 500); 3 Dec 2008 07:28:37 -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 62822 invoked by uid 99); 3 Dec 2008 07:28:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2008 23:28:37 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of newadminbg@gmail.com designates 74.125.78.145 as permitted sender) Received: from [74.125.78.145] (HELO ey-out-1920.google.com) (74.125.78.145) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 07:27:08 +0000 Received: by ey-out-1920.google.com with SMTP id 4so1496668eyg.60 for ; Tue, 02 Dec 2008 23:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=6bsmBSXyPAExSrCxIV24GMMA8UqtmADb3T0bs64BLnw=; b=Eb/TQgWigB0bg8MaiitRaoH1NODYpjoFPiu++RXqEJS/cqJcODnO7Q6dl8+AQdW3X/ eIBo1OY9nIsLaatGE/y5VWfcyow8Cyvv69JIy/fpwBYdx6Y8NicI7KslueWO5JKGoc0B 7RvgHzksMoyStV1kxezTAuKtFAncB6vsi+eWg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=jl+2r4UHjsZbrhC4y9L+Z1aMWbPYRJzs8rmpF0iXAK35EZ284E+sldVYwNL13Qc4YC XoHzkm2IBTUX018wW/Eds6CNn2D0IuHY1bxWpxMilxb7mfi6syxgArEE6cpMhdt6wmSD rzfIn+G8Lq7N9Vuq4bL6LqwpC5U3Ie79MX6vk= Received: by 10.210.73.12 with SMTP id v12mr15056295eba.15.1228289265419; Tue, 02 Dec 2008 23:27:45 -0800 (PST) Received: from ?192.168.1.7? ([77.77.2.159]) by mx.google.com with ESMTPS id k9sm33348299nfh.23.2008.12.02.23.27.43 (version=SSLv3 cipher=RC4-MD5); Tue, 02 Dec 2008 23:27:44 -0800 (PST) Message-ID: <49363622.2090201@gmail.com> Date: Wed, 03 Dec 2008 09:32:50 +0200 From: Martin Dyulgerov User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: Commons Users List Subject: Re: DBCP problem with idle object References: <49341C36.5090607@gmail.com> <4934960F.5030406@gmail.com> <49354756.2080306@gmail.com> <4935E9DA.2000405@gmail.com> In-Reply-To: <4935E9DA.2000405@gmail.com> Content-Type: multipart/mixed; boundary="------------080403060708090108050302" X-Virus-Checked: Checked by ClamAV on apache.org --------------080403060708090108050302 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Phil Steitz wrote: > Looks like you may not be closing your connections on all control > paths. Are you sure there are not exception conditions that could > cause your close() activations to be missed? Hello again. I am sure that in every JSP or servlet I am closing thje connections with the following piece of code: try { pConn.close(); // my connections, gained from the PoolingDataSource, they are of type Connection } catch(Exception exc) { System.out.println("Exception: "+exc.getMessage()); out.println("Exception: "+exc.getMessage()); } MySQL shows opened only one connection when the pool seems to be working. I dont know what is causing the pool to stop working and giving the exception. As a result of my further research on the problem on the Internet yesterday, I am now using the following settings for the pool: GenericObjectPool.Config config=new GenericObjectPool.Config(); config.maxActive=50; config.maxWait=-1; config.testOnBorrow=true; config.defaultAutoCommit=true; config.minIdle=0; config.testWhileIdle=false; I am going to continue my work on the project, so if the exception shows again I'll know in a matter of hours. Thanks for your replies. Martin --------------080403060708090108050302 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org --------------080403060708090108050302--