background : Some days ago update company many years ago when an old platform was posted on tomcat, frequently received a number of modules that are not normally used by the website.
After the discovery of the platform for a period of time during the testing process, the following 500 pages appear on the relevant webpage
Solution: PermGen space (permanent generation space) default maximum setting 64M under Windows.
After restarting the Tomcat service through Http://localhost:3088/manager/status View Perm Gen occupancy has reached more than 90% no wonder memory overflows after running for a period of time
Workaround on Windows platform:
Resize Tomcatpermgen Space: Tomcat (decompression version) \bin\catalina.bat search%_execjava%%java_opts%%catalina_opts%%debug_opts% Add-xx:permsize=64m-xx:maxpermsize=128m back to the Status Management page to find that the maximum capacity has changed
root cause: The platform was developed years ago and has been in the maintenance update state without the idea of refactoring the platform, since it did not use package management tools to contain multiple webapp at the same time, The class information inside the jar package that causes a large number of duplicates or useless in each WebApp directory is put into the permanent save area, causing the PermGen space memory overflow condition to occur.
Tomcat Java.OutOfMemoryError:PermGen Space exception