You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Probst (JIRA)" <ji...@codehaus.org> on 2007/01/20 13:07:09 UTC

[jira] Created: (MSUREFIREREP-38) Surefire report plugins fails with OutOfMemoryError, doesn't scale

Surefire report plugins fails with OutOfMemoryError, doesn't scale
------------------------------------------------------------------

                 Key: MSUREFIREREP-38
                 URL: http://jira.codehaus.org/browse/MSUREFIREREP-38
             Project: Maven 2.x Surefire report Plugin
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: MacOS X; java version "1.5.0_06"
            Reporter: Martin Probst


The surefire report plugin fails to create a test report with an OutOfMemoryError. 

I've set MAVEN_OPTS to -Xmx512m and to -Xmx1024m. With 512m the report fails after about 3 minutes, with 1GB it taks significantly longer. Both report generation tasks fail.
{pre}
[INFO] [surefire-report:report]
[WARNING] Unable to locate Test Source XRef to link to - DISABLED
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 21 seconds
[INFO] Finished at: Sat Jan 20 12:59:13 CET 2007
[INFO] Final Memory: 69M/1016M
[INFO] ------------------------------------------------------------------------
{/pre}

This happens regardless of the actual JUnit tests - I ran this with -Dmaven.test.skip=true.

The target/surefire-reports directory contains over 700 MB of XML reports, mainly due to long stack traces in the mostly failing 2000+ tests. However the JUnit reports plugin in ANT which we used to use had no problems handling this kind of data.

-- 
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

        

[jira] Moved: (SUREFIRE-262) Surefire report plugins fails with OutOfMemoryError, doesn't scale

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MSUREFIREREP-38 to SUREFIRE-262:
---------------------------------------------------

    Affects Version/s:     (was: 2.0 Report Plugin)
                  Key: SUREFIRE-262  (was: MSUREFIREREP-38)
              Project: Maven Surefire  (was: Maven 2.x Surefire report Plugin)

> Surefire report plugins fails with OutOfMemoryError, doesn't scale
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-262
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-262
>             Project: Maven Surefire
>          Issue Type: Bug
>         Environment: MacOS X; java version "1.5.0_06"
>            Reporter: Martin Probst
>
> The surefire report plugin fails to create a test report with an OutOfMemoryError. 
> I've set MAVEN_OPTS to -Xmx512m and to -Xmx1024m. With 512m the report fails after about 3 minutes, with 1GB it taks significantly longer. Both report generation tasks fail.
> {pre}
> [INFO] [surefire-report:report]
> [WARNING] Unable to locate Test Source XRef to link to - DISABLED
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 21 seconds
> [INFO] Finished at: Sat Jan 20 12:59:13 CET 2007
> [INFO] Final Memory: 69M/1016M
> [INFO] ------------------------------------------------------------------------
> {/pre}
> This happens regardless of the actual JUnit tests - I ran this with -Dmaven.test.skip=true.
> The target/surefire-reports directory contains over 700 MB of XML reports, mainly due to long stack traces in the mostly failing 2000+ tests. However the JUnit reports plugin in ANT which we used to use had no problems handling this kind of data.

-- 
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

        

[jira] Updated: (SUREFIRE-262) Surefire report plugins fails with OutOfMemoryError, doesn't scale

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-262:
----------------------------------

    Affects Version/s: 2.0 Report Plugin
          Component/s: report plugin

> Surefire report plugins fails with OutOfMemoryError, doesn't scale
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-262
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-262
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: report plugin
>    Affects Versions: 2.0 Report Plugin
>         Environment: MacOS X; java version "1.5.0_06"
>            Reporter: Martin Probst
>
> The surefire report plugin fails to create a test report with an OutOfMemoryError. 
> I've set MAVEN_OPTS to -Xmx512m and to -Xmx1024m. With 512m the report fails after about 3 minutes, with 1GB it taks significantly longer. Both report generation tasks fail.
> {pre}
> [INFO] [surefire-report:report]
> [WARNING] Unable to locate Test Source XRef to link to - DISABLED
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 21 seconds
> [INFO] Finished at: Sat Jan 20 12:59:13 CET 2007
> [INFO] Final Memory: 69M/1016M
> [INFO] ------------------------------------------------------------------------
> {/pre}
> This happens regardless of the actual JUnit tests - I ran this with -Dmaven.test.skip=true.
> The target/surefire-reports directory contains over 700 MB of XML reports, mainly due to long stack traces in the mostly failing 2000+ tests. However the JUnit reports plugin in ANT which we used to use had no problems handling this kind of data.

-- 
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

        

[jira] Updated: (SUREFIRE-262) Surefire report plugins fails with OutOfMemoryError, doesn't scale

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-262:
----------------------------------

    Fix Version/s: 2.3

> Surefire report plugins fails with OutOfMemoryError, doesn't scale
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-262
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-262
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: report plugin
>    Affects Versions: 2.0 Report Plugin
>         Environment: MacOS X; java version "1.5.0_06"
>            Reporter: Martin Probst
>             Fix For: 2.3
>
>
> The surefire report plugin fails to create a test report with an OutOfMemoryError. 
> I've set MAVEN_OPTS to -Xmx512m and to -Xmx1024m. With 512m the report fails after about 3 minutes, with 1GB it taks significantly longer. Both report generation tasks fail.
> {pre}
> [INFO] [surefire-report:report]
> [WARNING] Unable to locate Test Source XRef to link to - DISABLED
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 21 seconds
> [INFO] Finished at: Sat Jan 20 12:59:13 CET 2007
> [INFO] Final Memory: 69M/1016M
> [INFO] ------------------------------------------------------------------------
> {/pre}
> This happens regardless of the actual JUnit tests - I ran this with -Dmaven.test.skip=true.
> The target/surefire-reports directory contains over 700 MB of XML reports, mainly due to long stack traces in the mostly failing 2000+ tests. However the JUnit reports plugin in ANT which we used to use had no problems handling this kind of data.

-- 
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

        

[jira] Updated: (SUREFIRE-262) Surefire report plugins fails with OutOfMemoryError, doesn't scale

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-262:
----------------------------------

    Fix Version/s:     (was: 2.3)
                   2.4

> Surefire report plugins fails with OutOfMemoryError, doesn't scale
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-262
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-262
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: report plugin
>    Affects Versions: 2.0 Report Plugin
>         Environment: MacOS X; java version "1.5.0_06"
>            Reporter: Martin Probst
>             Fix For: 2.4
>
>
> The surefire report plugin fails to create a test report with an OutOfMemoryError. 
> I've set MAVEN_OPTS to -Xmx512m and to -Xmx1024m. With 512m the report fails after about 3 minutes, with 1GB it taks significantly longer. Both report generation tasks fail.
> {pre}
> [INFO] [surefire-report:report]
> [WARNING] Unable to locate Test Source XRef to link to - DISABLED
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 21 seconds
> [INFO] Finished at: Sat Jan 20 12:59:13 CET 2007
> [INFO] Final Memory: 69M/1016M
> [INFO] ------------------------------------------------------------------------
> {/pre}
> This happens regardless of the actual JUnit tests - I ran this with -Dmaven.test.skip=true.
> The target/surefire-reports directory contains over 700 MB of XML reports, mainly due to long stack traces in the mostly failing 2000+ tests. However the JUnit reports plugin in ANT which we used to use had no problems handling this kind of data.

-- 
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

        

[jira] Closed: (SUREFIRE-262) Surefire report plugins fails with OutOfMemoryError, doesn't scale

Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich closed SUREFIRE-262.
---------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.4)

I just wrote and ran a test that auto-generates tests, checked into the 2.4 trunk in revision 597788.  It scaled up to 100,000 tests (75K) failures in only a few minutes (though I did have to pass -Xmx1400m to the forked JUnit process because JUnit keeps every test in memory for the entire test run).  Note that 75,000 test failures was about 300MB of XML reports.

Since you had closer to 2000 failing tests and had 700MB of XML, I'm going to guess that you were coming into contact with SUREFIRE-52 (which has since been fixed).

> Surefire report plugins fails with OutOfMemoryError, doesn't scale
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-262
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-262
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: report plugin
>    Affects Versions: 2.0 Report Plugin
>         Environment: MacOS X; java version "1.5.0_06"
>            Reporter: Martin Probst
>
> The surefire report plugin fails to create a test report with an OutOfMemoryError. 
> I've set MAVEN_OPTS to -Xmx512m and to -Xmx1024m. With 512m the report fails after about 3 minutes, with 1GB it taks significantly longer. Both report generation tasks fail.
> {pre}
> [INFO] [surefire-report:report]
> [WARNING] Unable to locate Test Source XRef to link to - DISABLED
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 21 seconds
> [INFO] Finished at: Sat Jan 20 12:59:13 CET 2007
> [INFO] Final Memory: 69M/1016M
> [INFO] ------------------------------------------------------------------------
> {/pre}
> This happens regardless of the actual JUnit tests - I ran this with -Dmaven.test.skip=true.
> The target/surefire-reports directory contains over 700 MB of XML reports, mainly due to long stack traces in the mostly failing 2000+ tests. However the JUnit reports plugin in ANT which we used to use had no problems handling this kind of data.

-- 
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

        

[jira] Commented: (SUREFIRE-262) Surefire report plugins fails with OutOfMemoryError, doesn't scale

Posted by "Martin Probst (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_85997 ] 

Martin Probst commented on SUREFIRE-262:
----------------------------------------

Additionally, when you manage to reduce the reports size so that surefire-report manages to create a report, it creates one single big HTML file. The file for my 2200 tests (104 errors w/ stack traces) is 66 MB in size. This is not viewable in todays browsers.

Only solution would probably be an (optional?) multi-file report. Should I file another bug for that?

> Surefire report plugins fails with OutOfMemoryError, doesn't scale
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-262
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-262
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: report plugin
>    Affects Versions: 2.0 Report Plugin
>         Environment: MacOS X; java version "1.5.0_06"
>            Reporter: Martin Probst
>             Fix For: 2.3
>
>
> The surefire report plugin fails to create a test report with an OutOfMemoryError. 
> I've set MAVEN_OPTS to -Xmx512m and to -Xmx1024m. With 512m the report fails after about 3 minutes, with 1GB it taks significantly longer. Both report generation tasks fail.
> {pre}
> [INFO] [surefire-report:report]
> [WARNING] Unable to locate Test Source XRef to link to - DISABLED
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 21 seconds
> [INFO] Finished at: Sat Jan 20 12:59:13 CET 2007
> [INFO] Final Memory: 69M/1016M
> [INFO] ------------------------------------------------------------------------
> {/pre}
> This happens regardless of the actual JUnit tests - I ran this with -Dmaven.test.skip=true.
> The target/surefire-reports directory contains over 700 MB of XML reports, mainly due to long stack traces in the mostly failing 2000+ tests. However the JUnit reports plugin in ANT which we used to use had no problems handling this kind of data.

-- 
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