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 | 3 months ago
  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 | 3 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)
  2. 0

    TestStressRSetCoarsening time to time (very rare) runs out of Heap and fails. The tests allocates ~90% of the heap by creating Object[N] objects and then add/remove cross object references trying to stress the Remembered Set. The test uses WhiteBox API to determine precisely the value of N (in new Object[N]) and how many such objects to create to fill out 90% of the heap, so there should not be any problem with creating enough objects. During stressing the test doesn't create new objects expect a few temporary, so there should be no OOM. So, at the first glance it seems to be bug in the VM. ----------System.err:(17/1211)---------- java.lang.OutOfMemoryError: Java heap space at TestStressRSetCoarsening$$StringConcat/2062096562.concat(Unknown Source) at java.lang.invoke.LambdaForm$DMH/1109510093.invokeStatic_I3_L(java.base@9-internal/LambdaForm$DMH) at java.lang.invoke.LambdaForm$MH/1888038690.linkToTargetMethod(java.base@9-internal/LambdaForm$MH) at TestStressRSetCoarsening.go(TestStressRSetCoarsening.java:249) at TestStressRSetCoarsening.main(TestStressRSetCoarsening.java:97) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843)

    JDK Bug System | 7 months ago | Dmitry Fazunenko
    java.lang.OutOfMemoryError: Java heap space at TestStressRSetCoarsening$$StringConcat/2062096562.concat(Unknown Source) at java.lang.invoke.LambdaForm$DMH/1109510093.invokeStatic_I3_L(java.base@9-internal/LambdaForm$DMH) at java.lang.invoke.LambdaForm$MH/1888038690.linkToTargetMethod(java.base@9-internal/LambdaForm$MH)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Scala IDE and Out of Memory error

    Google Groups | 2 years ago | Deepak Jain
    java.lang.OutOfMemoryError: Java heap space [INFO] at java.util.Arrays.copyOf(Arrays.java:2882) [INFO] at java.lang.AbstractStringBuilder.expandCapacity( AbstractStringBuilder.java:100) [INFO] at java.lang.AbstractStringBuilder.append( AbstractStringBuilder.java:390) [INFO] at java.lang.StringBuilder.append(StringBuilder.java:119) [INFO] at scala.collection.mutable.StringBuilder.append( StringBuilder.scala:207) [INFO] at scala.collection.TraversableOnce$$anonfun$addString$1.apply( TraversableOnce.scala:326) [INFO] at scala.collection.immutable.List.foreach(List.scala:318) [INFO] at scala.collection.TraversableOnce$class.addString( TraversableOnce.scala:320) [INFO] at scala.collection.AbstractTraversable.addString( Traversable.scala:105) [INFO] at scala.collection.TraversableOnce$class.mkString( TraversableOnce.scala:286) [INFO] at scala.collection.AbstractTraversable.mkString( Traversable.scala:105) [INFO] at scala.collection.TraversableOnce$class.mkString( TraversableOnce.scala:288) [INFO] at scala.collection.AbstractTraversable.mkString( Traversable.scala:105)
  5. 0

    import com.google.gwt.maps.client.MapWidget

    GitHub | 1 year ago | GoogleCodeExporter
    java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder. java:99) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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