When working in a native test environment to publish a Web project, Eclipse reported this error, online search, find the following solutions, record.
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
Modify the debug mode and run mode, either of the two modifications, and the other will be modified as well:
Click the small arrow next to it and select Run configurations.
Add-xms1024m-xmx2024m-xx:maxpermsize=256m at the end
Thanks to the selfless sharing of the people.
Eclipse Newspaper Java.lang.OutOfMemoryError:PermGen Space