Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 62935 invoked from network); 19 Apr 2007 13:49:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 13:49:26 -0000 Received: (qmail 46122 invoked by uid 500); 19 Apr 2007 13:49:28 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 46070 invoked by uid 500); 19 Apr 2007 13:49:28 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 46057 invoked by uid 500); 19 Apr 2007 13:49:28 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 46051 invoked by uid 99); 19 Apr 2007 13:49:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 06:49:28 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME 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, 19 Apr 2007 06:49:21 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id 22B1671407E; Thu, 19 Apr 2007 06:49:00 -0700 (PDT) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 42172] New: - Classloader leak Message-ID: X-Bugzilla-Reason: AssignedTo Date: Thu, 19 Apr 2007 06:49:00 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=42172 Summary: Classloader leak Product: Tomcat 5 Version: 5.5.23 Platform: Other OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: kgross@dor.state.wi.us On reload of a application memory usage in the PermGen rises steadily as does the loaded classes count. If you reload and access the application many times and the remove the application and take a memory dump you'll that there are still many instances of the WebappClassLoader in memory. If you then look for what refers to these instances you find cross classloader references. A specific case is that I find the ApplicationDispatcher class which is loaded by StandardClassLoader has a static reference to an instance of org.apache.commons.logging.impl.Log4JLogger that was loaded by one of the WebappClassLoader s. I have a very small war that I've been able to reproduce this problem with which I'll attach. I think the important bits are that the application includes log4j and commons-logging in the WEB-INF/lib directory and some how some catalina classes are seeing and using this class. I've tested this with both Sun Java Sun 1.6.0 and 1.6.0_01. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org