DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35750>. 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=35750 Summary: Memory leak in JUnit task Product: Ant Version: 1.6.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Optional Tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] I had project with hundreds of tests and running junit task failed with OutOfMemoryError: PermGen space. I ran ant in profiler and there was increasing number of AntClassLoader2 instances, which wasn't garbage collected. Number of instances corresponded to the test classes loaded in JUnit task. There is handler pointing onto these classloaders from Project class - listeners variable. So I wrote simple test case for testing this issue, which I'm sending in attachement. After looking into source code of ant, it seems, that problem is in JUnitTask class, method executeInVM in finally block: if(!reloading) condition, which cleanup classloader, should be inverted. But it is only my simple view on problem, I don't know details of JUnitTask implementation. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]