Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73998 invoked from network); 1 Apr 2009 01:43:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2009 01:43:28 -0000 Received: (qmail 50133 invoked by uid 500); 1 Apr 2009 01:43:24 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 50071 invoked by uid 500); 1 Apr 2009 01:43:24 -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 50060 invoked by uid 99); 1 Apr 2009 01:43:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 01:43:24 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [168.144.250.183] (HELO xsmtp15.mail2web.com) (168.144.250.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 01:43:14 +0000 Received: from [168.144.108.21] (helo=M2W021.mail2web.com) by xsmtp15.mail2web.com with smtp (Exim 4.63) (envelope-from ) id 1LopTg-0006T0-He for users@tomcat.apache.org; Tue, 31 Mar 2009 21:42:53 -0400 Message-ID: <380-2200943114252503@M2W021.mail2web.com> X-Priority: 3 Reply-To: allen.irwin@smartintegration.com.au X-Originating-IP: 203.171.5.4 X-URL: http://mail2web.com/ From: "allen.irwin@smartintegration.com.au" To: users@tomcat.apache.org Date: Tue, 31 Mar 2009 21:42:52 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Connection Pooling questions X-Virus-Checked: Checked by ClamAV on apache.org Hello, I searched on the mailing list back to 2007 and didn't see the answers I needed for these DataSource related questions (though I did see similar, not quite what I needed though)=2E I'm using Tomcat 5=2E5, Java 1=2E5 on Windows XP and have used the excelle= nt guide: http://tomcat=2Eapache=2Eorg/tomcat-5=2E5-doc/jndi-resources-howto=2E= html for configuring the default data source within Tomcat I configure it using the suggested /META-INF/context=2Exml with: maxActive=3D"30" maxIdle=3D"10" I assumed that maxActive would limit the total amount of DB connections that could ever be open at one time (in this case 30)=2E Yet from what I see it seems like I am limited to maxActive + maxIdle connections open (in this case 40)=2E Is that true=3F Also, the default behavior seems to be that the connections never close within the pool when they are not being used=2E I had my Tomcat server si= t there for about an hour idle with no client requests incoming and when I ran netstat -a I still saw 39 connections open, they only closed when I killed Tomcat=2E Do I have to turn on some kind of cleanup explicitly=3F I do close the connections within my program using conn=2Eclose(); as the howto suggests=2E I thought that when the connections were not used that they would over time be "really" closed and I would end up with the maxIdl= e value of 10 open connections within my Pool=2E thanks!=20 -------------------------------------------------------------------- mail2web=2Ecom =96 Enhanced email for the mobile individual based on Micro= soft=AE Exchange - http://link=2Email2web=2Ecom/Personal/EnhancedEmail --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org