Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C77D4D09 for ; Mon, 11 Jul 2011 10:34:33 +0000 (UTC) Received: (qmail 46574 invoked by uid 500); 11 Jul 2011 10:34:32 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 45440 invoked by uid 500); 11 Jul 2011 10:34:27 -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 45314 invoked by uid 99); 11 Jul 2011 10:34:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 10:34:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 10:34:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E094445AFD for ; Mon, 11 Jul 2011 10:33:59 +0000 (UTC) Date: Mon, 11 Jul 2011 10:33:59 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <1807528606.2582.1310380439916.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <970557658.4824.1309978336933.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5316) Unload old JDBC drivers when done with them in the upgrade tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-5316: -------------------------------------- Attachment: deregister-v2.diff Attaching a simplified patch (deregister-v2.diff). The v2 patch does not create a directory with the DriverUnloader class in the test directory. Instead, it creates a specialized class loader that reads it directly from the system classpath. > Unload old JDBC drivers when done with them in the upgrade tests > ---------------------------------------------------------------- > > Key: DERBY-5316 > URL: https://issues.apache.org/jira/browse/DERBY-5316 > Project: Derby > Issue Type: Improvement > Components: Test > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Attachments: deregister-v2.diff, deregister.diff > > > Discussed in this thread on derby-dev: http://mail-archives.apache.org/mod_mbox/db-derby-dev/201107.mbox/%3C4E146309.3000906@gmail.com%3E > After we're done testing an old version in the upgrade tests, its classes are still loaded in the JVM because the old driver is referenced in DriverManager. We should find a way to unload the old drivers so that the memory usage of the upgrade tests is reduced. Now we typically need to run with -XX:MaxPermSize=200M or similar options to work around this issue. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira