[ http://jira.jboss.com/jira/browse/JBAS-1319?page=comments#action_12316802 ] Adrian Brock commented on JBAS-1319: ------------------------------------
Correct, this is caused by something holding onto classloaders across deployments. Usually because of static collections in non redeployed classes. Which version did you test? Here is a bug fix for Tomcat 5.0.28 (used in JBoss4.0.1) and ThreadAttributes where just such a static Hashtable was causing a memory leak. The fix was to replace the static Hashtable with a ThreadLocal. http://issues.apache.org/bugzilla/show_bug.cgi?id=33368 http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/SystemLogHandler.java?r1=1.5&r2=1.6 JBoss4.0.2RC1+ uses Tomcat5.5 which includes this fix. > redeploy causes OutOfMemoryError > -------------------------------- > > Key: JBAS-1319 > URL: http://jira.jboss.com/jira/browse/JBAS-1319 > Project: JBoss Application Server > Type: Bug > Components: Web (Tomcat) service > Versions: JBossAS-4.0.1 Final > Environment: JBoss 4.0.1 running on fedora core 3, using jdk 1.5.0 > Reporter: Matthew Todd > Assignee: Clebert Suconic > Attachments: analysis.zip > > > Constant redployment, even of a simple web application eventually causes an > OutOfMemoryError in JBoss. > To duplicate, keep on copying a .war package into a servers hot deploy > directory. Eventually an OutOfMemoryError occurs. > This is especially dangerous when running as a cluster, as when the node is > restarted, it is unable to join the cluster again. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
