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)


Solutions on the web6766

Solution icon of openjdk
via JDK Bug System by Tatiana Pivovarova, 11 months ago
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)

Solution icon of openjdk
via JDK Bug System by Dmitry Fazunenko, 1 year ago
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)

Solution icon of github
Java heap space at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder. java:99) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)

Solution icon of stackoverflow
Java heap space ERROR | 2016-03-29 14:08:45,068 | - at java.util.Arrays.copyOf(Arrays.java:2882) ERROR | 2016-03-29 14:08:45,068 | - at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)

Solution icon of apache
via myfaces-users by Shane Petroff, 1 year ago
Java heap space > at java.util.Arrays.copyOf(Arrays.java:2882)

Solution icon of apache
via myfaces-users by Shane Petroff, 1 year ago
Java heap space > at java.util.Arrays.copyOf(Arrays.java:2882)

Solution icon of oraclecommunity
via Oracle Community by user13099913, 1 year ago
Java heap space + at java.util.Arrays.copyOf(Arrays.java:2734)

Solution icon of stackoverflow
Java heap space at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45) at java.lang.StringBuilder.<init>(StringBuilder.java:68)

Solution icon of stackoverflow
Java heap space at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44) at java.lang.StringBuilder.<init>(StringBuilder.java:81)

Stack trace

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

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.