Java.lang.OutOfMemoryError:PermGen space and how to solve it

Source: Internet
Author: User

Today changed a tomcat6.0.51 time, two items simultaneously debug start, reported this error: Java.lang.OutOfMemoryError:PermGen space

Find the answer on the Internet The main solution is this:

Manually setting the MaxPermSize size
Modify Tomcat_home/bin/catalina.bat (under Linux for catalina.sh),
Add the following line to the "echo" Using catalina_base: $CATALINA _base "":
set java_opts=%java_opts%-server-xx:permsize=128m-xx:maxpermsize=512m
(Add the above line, personally try to do it)

Under catalina.sh:
java_opts= "$JAVA _opts-server-xx:permsize=128m-xx:maxpermsize=512m"

Reference article: http://blog.csdn.net/fengyie007/article/details/1780375

Added no resolution, finally see someone's comments solved the problem, thank you very much ~

When you set up tomcat, you should double-click the configuration of the server, plus the following configuration.

-xms256m-xmx512m-xx:permsize=256m-xx:maxpermsize=512m

Click Open Launch Configuration


Java.lang.OutOfMemoryError:PermGen space and how to solve it

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.