How Outofmemoryerror:permgen space is resolved in multiple project MyEclipse start up

Source: Internet
Author: User
Tags garbage collection

Start the program in MyEclipse Run, error java.lang.OutOfMemoryError:PermGen space should do? This is why eclipse memory is not enough.

PermGen space is the full name of permanent Generation space, refers to the memory of the permanent storage area, this block of memory is mainly stored by the JVM class and meta information, class is loader will be placed in PermGen Space, unlike the heap area where the class instance (Instance) is stored, the GC (garbage Collection) does not clean up permgen space during the main program run time, so if you have many classes in your application, PermGen space errors are most likely to occur when the Web server pre-compile the JSP. If you have a large number of third-party jars under your web app that are larger than the JVM's default size (4M), this error message will be generated.

One, manually set MaxPermSize size modification Tomcat_home/bin/catalina.bat (Windows system) or catalina.sh (Unix system) in "echo" Using catalina_base: $ Catalina_base "" Add the following line: Set java_opts=%java_opts%-server-xx:permsize=256m-xx:maxpermsize=512m

Second, if you start Tomcat by MyEclipse start the server, you need to set the memory size inside the MyEclipse

Workaround in Tomcat: manually set MaxPermSize size modification tomcat_home/bin/catalina.sh in "echo" Using catalina_base: $CATALINA _base "" Add the following line above: java_opts= "-server-xms256m-xmx256m-xx:maxnewsize=256m-xx:maxpermsize=256m"

How Outofmemoryerror:permgen space is resolved in multiple project MyEclipse start up

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.