Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-938

out of memory when logging more messages than heap size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.12.4
    • 2.15
    • Maven Surefire Plugin
    • None

    Description

      Observed OOM when logging more messages than heap size:

      Exception in thread "ThreadedStreamConsumer" java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOfRange(Arrays.java:3209)
      at java.lang.String.<init>(String.java:215)
      at java.lang.StringBuilder.toString(StringBuilder.java:430)
      at org.apache.maven.plugin.surefire.report.TestSetRunListener.getAsString(TestSetRunListener.java:225)
      at org.apache.maven.plugin.surefire.report.TestSetRunListener.wrap(TestSetRunListener.java:230)
      at org.apache.maven.plugin.surefire.report.TestSetRunListener.testSucceeded(TestSetRunListener.java:161)
      at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.consumeLine(ForkClient.java:100)
      at org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer$Pumper.run(ThreadedStreamConsumer.java:67)
      at java.lang.Thread.run(Thread.java:662)

      Attachments

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              argaul Andrew Gaul
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: