Tomcat Java.OutOfMemoryError:PermGen Space exception

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.