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
Modifying debug mode and run mode
How to run above Eclipse click on the small triangle has a debug configurations ... or run configurations ... After entering, select arguments Add VM arguments content is added to the top of the content-xms1204m-xmx2024m-xx:maxpermsize=256m
Eclipse under Java.lang.OutOfMemoryError:PermGen space