java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(java.base@9-internal/Arrays.java:3744) at java.lang.AbstractStringBuilder.ensureCapacityInternal(java.base@9-internal/AbstractStringBuilder.java:146) at java.lang.AbstractStringBuilder.append(java.base@9-internal/AbstractStringBuilder.java:510) at java.lang.StringBuilder.append(java.base@9-internal/StringBuilder.java:141)

JDK Bug System | Tatiana Pivovarova | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    This failure happens once in PIT on Windows-x86 VM options : -Xcomp -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+DeoptimizeALot #section:main ----------messages:(4/464)---------- command: main -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-CompactStrings -XX:-UseG1GC -XX:+UseParallelGC compiler.stringopts.TestStringObjectInitialization reason: User specified action: run main/othervm/timeout=300 -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-CompactStrings -XX:-UseG1GC -XX:+UseParallelGC compiler.stringopts.TestStringObjectInitialization Mode: othervm [/othervm specified] elapsed time (seconds): 336.474 ----------configuration:(0/0)---------- ----------System.out:(0/0)---------- ----------System.err:(16/1357)---------- java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(java.base@9-internal/Arrays.java:3744) at java.lang.AbstractStringBuilder.ensureCapacityInternal(java.base@9-internal/AbstractStringBuilder.java:146) at java.lang.AbstractStringBuilder.append(java.base@9-internal/AbstractStringBuilder.java:510) at java.lang.StringBuilder.append(java.base@9-internal/StringBuilder.java:141) at compiler.stringopts.TestStringObjectInitialization.add(TestStringObjectInitialization.java:62) at compiler.stringopts.TestStringObjectInitialization.run(TestStringObjectInitialization.java:67) at compiler.stringopts.TestStringObjectInitialization$Runner.run(TestStringObjectInitialization.java:80) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) java.lang.OutOfMemoryError: Java heap space at compiler.stringopts.TestStringObjectInitialization.add(TestStringObjectInitialization.java:62) at compiler.stringopts.TestStringObjectInitialization.run(TestStringObjectInitialization.java:67) at compiler.stringopts.TestStringObjectInitialization$Runner.run(TestStringObjectInitialization.java:80) at java.lang.Thread.run(java.base@9-internal/Thread.java:843)

    JDK Bug System | 7 months ago | Tatiana Pivovarova
    java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(java.base@9-internal/Arrays.java:3744) at java.lang.AbstractStringBuilder.ensureCapacityInternal(java.base@9-internal/AbstractStringBuilder.java:146) at java.lang.AbstractStringBuilder.append(java.base@9-internal/AbstractStringBuilder.java:510) at java.lang.StringBuilder.append(java.base@9-internal/StringBuilder.java:141)

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space at java.util.Arrays.copyOf(java.base@9-internal/Arrays.java:3744) at java.lang.AbstractStringBuilder.ensureCapacityInternal(java.base@9-internal/AbstractStringBuilder.java:146) at java.lang.AbstractStringBuilder.append(java.base@9-internal/AbstractStringBuilder.java:510) at java.lang.StringBuilder.append(java.base@9-internal/StringBuilder.java:141)

      at compiler.stringopts.TestStringObjectInitialization.add()
    2. compiler.stringopts
      TestStringObjectInitialization$Runner.run
      1. compiler.stringopts.TestStringObjectInitialization.add(TestStringObjectInitialization.java:62)
      2. compiler.stringopts.TestStringObjectInitialization.run(TestStringObjectInitialization.java:67)
      3. compiler.stringopts.TestStringObjectInitialization$Runner.run(TestStringObjectInitialization.java:80)
      3 frames