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

OutOfMemoryError while building multi module projects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.7.2
    • 2.8
    • None
    • None
    • Win 7 32bit

    Description

      We're getting out of memory errors since we've updated to surefire 2.7.2 from 2.6.
      Please check the attached jvisualvm pics they show the same build execution with 2.6 and 2.7.2. The attached "log.txt" and "log -X.txt" might also be interesting.
      it seems like 2.7.2 is not unloading classes after processing.

      We found out that if we skip tests with -DskipTests=true, the exception won't occur.

      The build consists of several multi module projects.

      <modules>
      <module>..\..\BaseSys\trunk</module> (multimodule)
      <module>..\..\MagIC\trunk</module> (multimodule)
      <module>..\..\StabNet\trunk</module> (multimodule)
      <module>..\..\tiamo\trunk</module> (multimodule)
      <module>..\..\TiBase\trunk</module> (multimodule)
      <module>..\..\VIVA\trunk</module> (multimodule)
      </modules>

      [ERROR] Java heap space > [Help 1]--------------------------Exception in thread "main" jav
      lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Arrays.java:2786)
      at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:44)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)
      at java.io.PrintStream.write(PrintStream.java:430)
      at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:42)

      Attachments

        1. surefire2-6-0.JPG
          257 kB
          Christian Moser
        2. surefire2-7-2.JPG
          265 kB
          Christian Moser
        3. surefire2-8-SNAPSHOT.JPG
          226 kB
          Christian Moser
        4. surefire2-8-SNAPSHOT-fix2.JPG
          273 kB
          Christian Moser
        5. surefire-log.zip
          1.14 MB
          Christian Moser

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              onmomo Christian Moser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: