<Depth understanding of JAVA Virtual Machine> Chapter II
Out Of Memory Error: Java heap space
Heap memory overflow
Need to determine is a memory leak or memory overflow
StackOverflowError
Stack memory overflow, including virtual machine stack, native method stacks
PermGen space permanently on behalf of insufficient memory, HotSpotJVM generations is a permanent method area (before JDK1.6 and, runtime constant pool area is also method);
The method area is some of the information stored in the class, such as class names, method names, modifiers, such as constant pool, if you create a class method area is filled with lots of code will produce a permanent behalf PermGen space memory overflow exception;