Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 66713 invoked from network); 22 Mar 2007 21:07:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 21:07:53 -0000 Received: (qmail 51537 invoked by uid 500); 22 Mar 2007 21:08:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 51504 invoked by uid 500); 22 Mar 2007 21:08:00 -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 51495 invoked by uid 99); 22 Mar 2007 21:08:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 14:08:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 14:07:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3028371403E for ; Thu, 22 Mar 2007 14:07:32 -0700 (PDT) Message-ID: <659846.1174597652175.JavaMail.jira@brutus> Date: Thu, 22 Mar 2007 14:07:32 -0700 (PDT) From: "Jeff Clary (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2480) DriverManager.getConnection leaks memory using EmbeddedDriver on non-existent database MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org DriverManager.getConnection leaks memory using EmbeddedDriver on non-existent database -------------------------------------------------------------------------------------- Key: DERBY-2480 URL: https://issues.apache.org/jira/browse/DERBY-2480 Project: Derby Issue Type: Bug Affects Versions: 10.2.2.0 Environment: Windows Vista, JDK 1.4.2_13 Reporter: Jeff Clary Repeated calls to java.sql.DriverManager.getConnection("jdbc:derby:C:\\DOES_NOT_EXIST") leak memory and eventually lead to an OutOfMemoryError. This bug is similar to DERBY-1947 in that ContextManager objects are not getting removed from the HashSet. The attached test program demonstrates the issue. When run with VM options -Xms8m -Xmx8m, it throws an OutOfMemoryError after 19022 calls to DriverManager.getConnection. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.