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)