JVM memory model
Point 6 in the figure above reported an error Java.lang.OutOfMemoryError:java heap space
The lasting generation is also called the permanent generation, also known as the method area. Store structural information for each java class: such as runtime constant pools, field and method data, bytecode contents of constructors and common methods, and special methods used for class, instance, and interface initialization.
When there are many classes to be loaded, reflected classes and called methods in the system, Permanet Generation may be full. In order to avoid the Full GC phenomenon caused by Perm Gen occupation, the method that can be adopted is to increase the Perm Gen space.