Transfer from online
This memory is primarily stored by the JVM with class and meta information, and class is placed in PermGen space when it is loader.
Unlike the heap area where the class instance (Instance) is stored, the GC (garbage Collection) does not operate on the main program
PermGen space for cleanup, so if you have a lot of classes in your app, you're likely to have permgen space errors,
This error is common when the Web server pre-compile the JSP. If you use a large number of third-party jars under your web app, its size
The default size of the JVM (4M) is exceeded, and this error message is generated.
Workaround: Manually set the MaxPermSize size
Steps:
One can modify debug mode and run mode
End of second not added (-xms1024m-xmx2024m-xx:maxpermsize=256m)
Note: Depending on your specific memory size, modify the corresponding (-XMS,-XMX) value
Eclipse PermGen Space Solution