Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 46573 invoked from network); 6 Oct 2005 20:28:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 20:28:17 -0000 Received: (qmail 36624 invoked by uid 500); 6 Oct 2005 20:28:02 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 36604 invoked by uid 500); 6 Oct 2005 20:28:01 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 36587 invoked by uid 99); 6 Oct 2005 20:28:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 13:28:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.17.130.186] (HELO mail.mhsoftware.com) (216.17.130.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 13:28:04 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.mhsoftware.com (Postfix) with ESMTP id 1C5AF324CE for ; Thu, 6 Oct 2005 14:27:50 -0600 (MDT) Received: from mail.mhsoftware.com ([127.0.0.1]) by localhost (hagrid [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14316-05 for ; Thu, 6 Oct 2005 14:27:49 -0600 (MDT) Received: from emp00 (c-24-8-34-101.hsd1.co.comcast.net [24.8.34.101]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.mhsoftware.com (Postfix) with ESMTP id 8A2C6324C8 for ; Thu, 6 Oct 2005 14:27:49 -0600 (MDT) From: "George Sexton" To: "'Tomcat Users List'" Subject: RE: Tracking Datasource Connection Usage? Date: Thu, 6 Oct 2005 14:27:37 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <001301c5cab1$d502a670$0d3f2909@jmalcolmt40> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcXKsfbismCmKwM8S/6oIOujMcEXJgAAlsvw Message-Id: <20051006202749.8A2C6324C8@mail.mhsoftware.com> X-Virus-Scanned: amavisd-new at mhsoftware.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N http://findbugs.sourceforge.net/ Will tell you where in your code you are not freeing resources. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -----Original Message----- > From: JWM [mailto:techstuff@malcolms.com] > Sent: Thursday, October 06, 2005 2:09 PM > To: tomcat-user@jakarta.apache.org > Subject: Tracking Datasource Connection Usage? > > I started getting exceptions saying no connections were > available on my JDBC > datasource (org.gjt.mm.mysql.Driver). The pool was > definitely large enough > to handle the load. So it appears that I'm not freeing the all the > connections as I should. I noticed that I did not have the > 'removeAbandoned' flag set on the Resource tag. Changing that has > apparently fixed the out of connections problem. But I > really want to clean > up the code and fix it the right way. I've got the close() > statements in > place. But obviously, I'm missing some of them somewhere. > Is there any > process for logging/tracking allocating and freeing > connections (and absence > thereof.), available connections, etc? Or are there any > methods I can call > to give me this type of debug info? What's the recommended > way to debug > this? > > Thanks. > > JWM > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org