Pattern selector

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

  1. StringBuilder.append() has thrown an OutOfMemoryError
    Java Runtime
    28
    17
    16
  2. JVM ran out of heap space while trying to create a copy of an existing array
    Java Runtime
    409
    421
    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:2894)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:117)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:407)
    at java.lang.StringBuilder.append(StringBuilder.java:136)
15 frames hidden

Solution

chinthana11 months 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. ankur jainvia Google Groups1 week ago
    Java heap space
    Show stack trace
  2. Di mavia Google Groups1 week ago
  3. Webster Homervia Google Groups1 week ago
    Java heap space
    Show stack trace
  4. cordawynvia GitHub1 week ago
  5. nathandunnvia GitHub2 weeks ago
    Java heap space
    Show stack trace
  6. JalenFangvia GitHub2 weeks ago
    Failed to allocate a 2097164 byte allocation with 674696 free bytes and 658KB until OOM 8009-19 06:27:59.282 12283 12283 E Sensors : sendAck failure -1 1 8109-19 06:27:59.282 12283 12283 E Sensors : sendAck failure -1 1 8209-19 06:27:59.282 12283 12283 E Sensors : sendAck failure -1 2 8309-19 06:27:59.282 12283 12283 E Sensors : sendAck failure -1 2
    Show stack trace
  7. sophia-guovia GitHub1 month ago
    Java heap space
    Show stack trace