Exception in Thread "Thread-12751" Java.lang.OutOfMemoryError:PermGen space

Source: Internet
Author: User

Reprinted from: http://greemranqq.iteye.com/blog/1705867

Reprinted from: http://www.cnblogs.com/xwdreamer/archive/2011/11/21/2296930.html


Java code
    1. Exception in thread "Containerbackgroundprocessor[standardengine[catalina]"
Java code
    1. Java.lang.OutOfMemoryError:PermGen Space
Java code
    1. Reason:
    2. The full name of PermGen space is permanent Generation space,
Java code
    1. Refers to the memory's permanent storage area, which is primarily stored by the JVM with class and meta information,
Java code
    1. Class is placed in PermGen space when it is loader,
Java code
    1. It differs from the heap area where the class instance (Instance) is stored, GC (garbage Collection)
Java code
    1. PermGen space is not cleaned during the main program run time, so if you have many classes in your application,
Java code
    1. PermGen space errors are most likely to occur when the Web server pre-compile the JSP.
Java code
    1. 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.

Java code
    1. Workaround 1:
    2. Manually set the MaxPermSize size, if it is a Linux system, modify the tomcat_home/bin/catalina.sh, if it is a Windows system, modify Tomcat_home/bin/catalina.bat,
    3. Add the following line to the "Echo " Using catalina_base: $CATALINA _base "":
    4. Java_opts= "-server-xx:permsize=64m-xx:maxpermsize=128m
Workaround 2
Java code
    1. Modify the Eclipse.ini file and modify the following:
    2. -vmargs
    3. -dosgi.requiredjavaversion=1.5
    4. -xms128m
    5. -xmx512m
    6. -xx:permsize=64m
    7. -xx:maxpermsize=128m
    8. If also reported is wrong, you can consider the following changes
    9. -vmargs
    10. -dosgi.requiredjavaversion=1.5
    11. -xms512m
    12. -xmx1024m
    13. -xx:permsize=256m
    14. -xx:maxpermsize=512m



Exception in Thread "Thread-12751" Java.lang.OutOfMemoryError:PermGen space

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.