Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. AbstractMessageReaderWriterProvider.readFromAsString() has thrown an OutOfMemoryError
    jersey-core
    0
    1
    1
  2. JVM ran out of heap space while trying to create a copy of an existing array
    Java Runtime
    409
    427
    181

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:3332)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
    at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)
28 frames hidden

Solution

chinthana1 year ago

In Eclipse : go to Run --> Run Configurations --> then select the project under maven build --> then select the tab "JRE" --> then enter -Xmx1024m.

This should increase the memory heap for all the builds/projects. The above memory size is 1 GB.

Check the source of this solution for more info

External results for this pattern (10)

  1. amrapalijzvia GitHub3 weeks ago
    Java heap space
    Show stack trace
  2. FxKuvia GitHub3 weeks ago
    Java heap space
    Show stack trace
  3. little-panvia GitHub4 weeks ago
  4. myrmoterasvia GitHub1 month ago
    GC overhead limit exceeded
    Show stack trace
  5. clementhelyvia GitHub1 month ago
    Java heap space
    Show stack trace
  6. bentsivia GitHub1 month ago
    Java heap space
    Show stack trace