Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 85950 invoked from network); 30 Jun 2009 20:02:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jun 2009 20:02:12 -0000 Received: (qmail 46170 invoked by uid 500); 30 Jun 2009 20:02:22 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 46073 invoked by uid 500); 30 Jun 2009 20:02:21 -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 46063 invoked by uid 99); 30 Jun 2009 20:02:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 20:02:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.58.213] (HELO web55504.mail.re4.yahoo.com) (206.190.58.213) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 30 Jun 2009 20:02:12 +0000 Received: (qmail 78915 invoked by uid 60001); 30 Jun 2009 20:01:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1246392111; bh=1QhOOegAjq+O5+Pi4jo7TS7OTwL0ms7S1eLOGTOLXpc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=TIf9528C5oXPyxZpEN5mOgOHJbO38qhjTIzP87pXnQifHhSvytwBdi9NAImn7P+gt+AaDjZi21mP/KUc5wTKrMITXkXC89/L6Xlh5EuIEOq9N1AAgnsW8NNKKFl8Oiqt21IphGejMiRTAea1qW50yXWr1COq2KtHuhXEW/4+r7c= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=GGlCoNTTEiaGzGMMBGbo+AJbKGcJ8CFEh9d+E3sHw0UYEXguz1JbN9r6iTd/qxwKbaQ3KhZjeSKTIC1PBrWcpDpP/HzhB+PmmSrw3Xptq1ZbS0ake0OktC0pJUkDGK8dEYdL5XEIapA8jI9gCZ7sGDpQDn2j+d1SSy8siuL8+ck=; Message-ID: <133471.77313.qm@web55504.mail.re4.yahoo.com> X-YMail-OSG: N0g82HQVM1ksZKN.A4vUHN62b1QIS97uZdS3o.teY3sLAsgNS2Yv8zOxBJR1TdFotu7xFAIlmQwUjfzoLPxySjddtCV.uA9UDTOW.CPxJBxdmkEorbr8Lag4jFUOahTcjuja3.KzDJoxwuiIpzstMe_.Tx3XsDuvLMCopG4AlFEPWwrKyJA7hS_crblQeeuA7qxj1lBSMaoYYwoxRSepnZ7VanJzyUgxSuidraiWl.5et56VbuBMVHqzB44uR6ygL81WeWWMEwRN.Kwh Received: from [72.248.114.66] by web55504.mail.re4.yahoo.com via HTTP; Tue, 30 Jun 2009 13:01:51 PDT X-Mailer: YahooMailRC/1357.22 YahooMailWebService/0.7.289.15 Date: Tue, 30 Jun 2009 13:01:51 -0700 (PDT) From: daniel steel Subject: Connection Pool Tuning To: user@commons.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1337095029-1246392111=:77313" X-Virus-Checked: Checked by ClamAV on apache.org --0-1337095029-1246392111=:77313 Content-Type: text/plain; charset=us-ascii hi all, we are running a load test using tomcat6 with SQL Server and dbcp connection pooling. This is our current conn pool set up - Some of the parameters are not ideal for prod env.. initialSize="5" maxActive="-2" maxIdle="85" maxWait="10000" timeBetweenEvictionRunsMillis="1800000" removeAbandoned="true" removeAbandonedTimeout="4" During the run, for some of the long running jsp we started getting errors and logs had these kind of errors.. 1. java.sql.SQLException: Connection net.sourceforge.jtds.jdbc.ConnectionJDBC3@a6ebc0c is closed. at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.checkOpen(DelegatingConnection.java:354) at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.createStatement(DelegatingConnection.java:222) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.createStatement(PoolingDataSource.java:205) 2. java.sql.SQLException: Invalid state, the Connection object is closed. at net.sourceforge.jtds.jdbc.TdsCore.checkOpen(TdsCore.java:448) at net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:946) at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:406) at net.sourceforge.jtds.jdbc.JtdsStatement.executeQuery(JtdsStatement.java:1258) at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) Is these errors because of removeAbandonedTimeoutsetting? would increasing the timeout help in reducing the errors? or what would cause these errors? would turning on logAbandoned help to correlate these errors to connection closed by dbcp? thank you bharat --0-1337095029-1246392111=:77313--