Purpose
This page is meant to explain some basic aspect of the OutOfMemoryError.
Overview
A famous error that causes crash of AS Java is OutOfMemoryError, a.k.a., OOM error.
Although the error name indicates some problem with Memory, there are actually multiple possibilities and hence solution varies.
In order to find the cause of OutOfMemory error, open std_serverX.out file which covers the time point when OutOfMemoryError occurred.
There you'll find some details about OutOfMemoryError in below pattern:
java.lang.OutOfMemoryError: <Detailed Reason>
Now what exact error do you see?
- java.lang.OutOfMemoryError: Java heap space
- java.lang.OutOfMemoryError: PermGen space
- java.lang.OutOfMemoryError: Requested array size exceeds VM limit
- java.lang.OutOfMemoryError: request <size> bytes for <reason>. Out of swap space?
- java.lang.OutOfMemoryError: unable to create new native thread
- java.lang.OutOfMemoryError: GC overhead limit exceeded