java.lang.OutOfMemoryError: Java heap space

Coderanch | Dhiren Dash | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Memory out of heap error.

    Coderanch | 3 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