java.lang.OutOfMemoryError: Java heap space

Coderanch | Dhiren Dash | 2 years 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

    Memory out of heap error.

    Coderanch | 2 years ago | Dhiren Dash
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.util.Arrays.copyOf()
    2. Java RT
      StringBuilder.replace
      1. java.util.Arrays.copyOf(Unknown Source)
      2. java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
      3. java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
      4. java.lang.AbstractStringBuilder.replace(Unknown Source)
      5. java.lang.StringBuilder.replace(Unknown Source)
      5 frames
    3. com.tcs.dash
      StringBuildExample.main
      1. com.tcs.dash.StringBuild.edit(StringBuild.java:13)
      2. com.tcs.dash.StringBuildExample.main(StringBuildExample.java:14)
      2 frames