Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 29174 invoked from network); 24 Mar 2006 10:38:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Mar 2006 10:38:58 -0000 Received: (qmail 20932 invoked by uid 500); 24 Mar 2006 10:38:57 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 20902 invoked by uid 500); 24 Mar 2006 10:38:56 -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 20893 invoked by uid 99); 24 Mar 2006 10:38:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2006 02:38:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2006 02:38:56 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4F3916ACA9 for ; Fri, 24 Mar 2006 10:38:35 +0000 (GMT) Message-ID: <958037957.1143196715312.JavaMail.jira@ajax> Date: Fri, 24 Mar 2006 10:38:35 +0000 (GMT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1142) Metadata calls leak memory In-Reply-To: <1004750107.1143053645464.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1142?page=comments#action_12371700 ] Knut Anders Hatlen commented on DERBY-1142: ------------------------------------------- My proposed solution actually fixed the memory leak, but broke derbyall. These tests failed: derbyall/derbyall.fail:jdbcapi/odbc_metadata.java derbyall/derbyall.fail:jdbcapi/bestrowidentifier.sql derbyall/derbynetmats/derbynetmats.fail:jdbcapi/bestrowidentifier.sql derbyall/derbynetclientmats/derbynetmats.fail:jdbcapi/bestrowidentifier.sql > Metadata calls leak memory > -------------------------- > > Key: DERBY-1142 > URL: http://issues.apache.org/jira/browse/DERBY-1142 > Project: Derby > Type: Bug > Components: JDBC > Versions: 10.1.2.1, 10.2.0.0 > Reporter: Knut Anders Hatlen > Priority: Minor > Attachments: metadataloop.java > > When calling a DatabaseMetaData method that returns a ResultSet, > memory is leaked. A loop like this (using the embedded driver) > while (true) { > ResultSet rs = dmd.getSchemas(); > rs.close(); > } > will eventually cause an OutOfMemoryError. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira