Memory Leak
-----------
Key: SUREFIRE-647
URL: http://jira.codehaus.org/browse/SUREFIRE-647
Project: Maven Surefire
Issue Type: Bug
Affects Versions: 2.6
Environment: Maven 2.2.1, 3.0RC1
Reporter: Stephen Coy
Priority: Critical
Attachments: surefire dump.png
We have a module containing over 500 unit tests, most of which create Hibernate
sessions with a largish data model.
Surefire 2.6 fails to complete these tests, even with:
<jvmArg>-Xmx512m</jvmArg>
specified.
Surefire 2.5 (and earlier) completes these tests with no trouble at all,
without jvmArg settings.
I performed a heapdump (which is too big to upload here) and it shows that
org.apache.maven.surefire.util.TeeStream seems to be hanging on to data in
memory. The 20 biggest objects by retained size were all instances of this.
I've attached a screen dump
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira