Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 67794 invoked from network); 29 Dec 2009 16:22:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Dec 2009 16:22:57 -0000 Received: (qmail 73330 invoked by uid 500); 29 Dec 2009 16:22:56 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 73213 invoked by uid 500); 29 Dec 2009 16:22:56 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 73202 invoked by uid 99); 29 Dec 2009 16:22:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 16:22:56 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Tue, 29 Dec 2009 16:22:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 67A57234C045 for ; Tue, 29 Dec 2009 08:22:29 -0800 (PST) Message-ID: <28999519.1262103749410.JavaMail.jira@brutus.apache.org> Date: Tue, 29 Dec 2009 16:22:29 +0000 (UTC) From: "Dennis Lundberg (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (LOGGING-51) [logging] Memory leaks in JBoss due to LogFactory cache 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/LOGGING-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dennis Lundberg updated LOGGING-51: ----------------------------------- Fix Version/s: 1.1.0 > [logging] Memory leaks in JBoss due to LogFactory cache > ------------------------------------------------------- > > Key: LOGGING-51 > URL: https://issues.apache.org/jira/browse/LOGGING-51 > Project: Commons Logging > Issue Type: Bug > Affects Versions: 1.0.4 > Environment: Operating System: All > Platform: All > Reporter: Alexei Yudichev > Fix For: 1.1.0 > > Attachments: JCL-guide.diff, LogFactory.diff, LogFactoryTest.diff, memoryleaktest.zip, patch.txt, WeakHashtable.java, WeakHashtable_javadoc.txt > > > LogFactory.java maintains a static cache (Hashtable) of LogFactories, keyed by > context ClassLoader. In JBoss, and may be in many other J2EE containers, each > hot-redeployment of a J2EE application makes a new class loader for the > application, destroying all references to the old one. However, commons-logging. > jar is loaded by a parent classloader which is common for all applications, and > still maintains hard references to would-be-dead ClassLoaders of undeployed > applications. This leads to significant memory leaks, because all static members > of all classes of the undeployed applications do not become a subject for GC. It > would be excellent if this LogFactory caching could be disabled through a config > or a WeakHashMap is used instead of Hashtable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.