Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 70395 invoked from network); 7 Apr 2008 07:23:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Apr 2008 07:23:07 -0000 Received: (qmail 67017 invoked by uid 500); 7 Apr 2008 07:23:07 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66985 invoked by uid 500); 7 Apr 2008 07:23:07 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 66976 invoked by uid 99); 7 Apr 2008 07:23:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2008 00:23:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2008 07:22:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3F8B9234C0BB for ; Mon, 7 Apr 2008 00:20:24 -0700 (PDT) Message-ID: <1658359209.1207552824259.JavaMail.jira@brutus> Date: Mon, 7 Apr 2008 00:20:24 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3596) Creation of logical connections from a pooled connection causes resource leak on the server In-Reply-To: <1878506709.1207318404518.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586257#action_12586257 ] Knut Anders Hatlen commented on DERBY-3596: ------------------------------------------- Sorry, I didn't notice that setAutoCommit(false) was commented out, so this is probably not the same issue as DERBY-3319. > Creation of logical connections from a pooled connection causes resource leak on the server > ------------------------------------------------------------------------------------------- > > Key: DERBY-3596 > URL: https://issues.apache.org/jira/browse/DERBY-3596 > Project: Derby > Issue Type: Bug > Components: Network Client, Network Server, Performance > Affects Versions: 10.1.3.1, 10.2.2.0, 10.3.2.1, 10.4.1.0, 10.5.0.0 > Reporter: Kristian Waagan > Attachments: ConnectionPoolingBug.java > > > When using ClientConnectionPoolDataSource and connection pooling, a new connection / transaction is created for every new logical connection, and the resources are not freed / cleaned up in the server. They are not even cleaned up when the physical connection (ClientPooledConnection) is closed. > A logical connection is obtained by invoking ClientPooledConnection.getConnection(). > I have observed that if you run the repro enough times against the same server, the number of transaction in the transaction table will be reduced now and then. I believe this is garbage collection, but I have not investigated the problem enough to tell for sure what's going on. > I have also seen some locks not being freed, causing timeouts in some applications. I don't have a repro for the lock problem at this time, but it is very likely related to this issue. > Note that XA connections are handled differently on the server, and do probably not have this problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.