Eclipse-java.lang.OutOfMemoryError: permgen space.

Source: Internet
Author: User


This period of time,EclipseIt's always dead. It's almost a little faster and it will die. It takes several minutes to make people very depressed. A lot of time is wasted. I searched the internet and found many friends with similar situations. I asked for help on the Internet. However, all the methods on the Internet are to modifyEclipse. iniFile to increaseEclipseMemory.


I tried it and found it was useless. Today, I die again, but a common error is reported. The general idea is:Permgen SpaceMemory overflow. I can't bear it. I searched the internet and found that the Internet is really a good thing. Especially for our own scholars, it is undoubtedly a mentor and friend who gives advice.


I would like to sum up my experience and the experience of netizens here, hoping to provide some reference value to friends suffering from this problem.


The solution is as follows:


InEclipse. iniAdd the following two lines to the configuration file:

-XX: permsize = 128 m

-XX: maxpermsize = 128 m


Add upstream2After all, myEclipse. iniThe file is as follows:



Org. Eclipse. Platform

-- Launcher. xxmaxpermsize

512 m




-XX: permsize = 128 m

-XX: maxpermsize = 128 m


The memory size here depends on your physical memory.


View data from the InternetPermsizeIt must be better to be bigger, and it is best to setPermsizeAndMaxpermsizeBig. The reasons are as follows:

PermsizeAndMaxpermsizeIf it is set to the same, the performance can be improved to some extent, because,PermsizeIn the ever-changing situation, data needs to be transferred. If it is fixed, it can reduce each ExpansionPermsizePerformance Loss.



Related Article

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: 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.