Java.lang.OutOfMemoryError:PermGen Space Memory Overflow Solution

Source: Internet
Author: User

Reason one: May be the machine is not enough memory

Reason two: May be the program into the dead loop state, this time need to check whether the code has a problem.

Solution One: Modify the configuration content, make it larger
1. Open the installation directory for Eclipse, locate the Eclipse.ini file, and open
We can see the following section of configuration information

OpenFile
--launcher. Xxmaxpermsize
256M
-showsplash
org.eclipse.platform
--launcher. Xxmaxpermsize
256m
--launcher.defaultaction
openfile
--launcher.appendvmargs
-vmargs
-dosgi.requiredjavaversion=1.6
-xms40m
-xmx512m

The parameters inside it are changed to:

OpenFile
--launcher. Xxmaxpermsize
512M
-showsplash
org.eclipse.platform
--launcher. Xxmaxpermsize
512m
--launcher.defaultaction
openfile
--launcher.appendvmargs
-vmargs
-dosgi.requiredjavaversion=1.6
-xms128m
-xmx1024m

2. Turn on Tomcat configuration

3. Next to the VM Arguments box under the Arguments tab box, follow your own Tomcat startup virtual machine parameters:-xms128m-xmx1024m-xx:maxpermsize=512m

Solution Two: Every time you open the server need clean memory, this method is too troublesome.

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.