I am getting the error: Exception in thread "main" java.lang.OutOf MemoryError: Java heap space.
Exception in thread "main"
Collapse
X
-
java.lang.OutOf MemoryError exception can also be thrown by native library code when a native allocation can't be satisfied. Following are the various cases when the OutOfMemory error might occur:
1) Due to Java Heap Space
2) When the GC Overhead limit exceeded
3) Permgen space is thrown
4) Metadata is allocated in native memory. if metaspace for class metadata is exhausted
5) Requested array size exceeds VM limitComment
Comment