Myeclipse/eclipse memory optimization and memory insufficiency Solution

Source: Internet
Author: User

During the project, myeclipse prompts that the memory is insufficient. I have 1 GB of local memory.
The error message is as follows:
Myeclipse has detected that less than 5% of the 64 MB of perm
Gen (non-heap memory) space remains. It is stronugly recommended
That you exit and restart myeclipse with new virtual machine memory
Paramters to increase this memory. Failure to do so can result in
Data loss. The recommended eclipse memory parameters are:
Eclipse.exe-vmargs-xms128m-xmx512m-XX: permsize = 64 m-XX: maxpermsize = 128 m

The following are parameters of my myeclipse shortcut:
"D:/eclipse 3.2.2/eclipse.exe"-product COM. genuitec. myeclipse. product. IDE-vmargs-duser. language = EN-xms128m-xmx512m-XX: permsize = 64 m-XX: maxpermsize = 128 M-dosgi. splashlocation = "D: // myeclipse 5.0ga /// eclipse /// myeclipsesplash.bmp"

For myeclipse, you can directly modify the myeclipse shortcut parameters on the desktop. The meaning of these parameters is explained now.

-Vmargs: Specifies the VM parameters.
-Xms40m: the virtual machine occupies the Minimum Memory of the system.
-Xmx256m: the virtual machine occupies the maximum memory of the system.
-XX: permsize: Minimum heap size. When insufficient memory is reported, this is too small,
If the remaining heap space is less than 5%, a warning is reported. We recommend that you set this parameter slightly.
Larger, but it depends on the memory size of your machine.
-XX: maxpermsize: Maximum heap size. This should also be larger.
-5% of xmx512m is 25.6 m. Theoretically, the value of-xmx and-XX: maxpermsize must be greater than 25.6 m.

Change the parameters in
-Vmargs
-Xms128m
-Xmx512m
-XX: permsize = 128 m
-XX: maxpermsize = 256 m

So for me, I just need to change myeclipse5.0 to-XX: permsize = 128m-xx: maxpermsize = 256 m. The problem is solved!
(Add one note: the parameters are in the eclipse. ini file under the exlipse directory you have installed)

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