ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35750] New: - Memory leak in JUnit task
Date Fri, 15 Jul 2005 08:24:59 GMT
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: hovan@pobox.sk


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message