There may be a problem with the setup of the Eclipse.ini file under the Eclipse directory, and the general INI file settings mainly include the following:
-vmargs-xms40m-xmx256m-xx:permsize=64m-xx:maxpermsize=128m
The following explains its meaning. -vmargs: Description is followed by the parameters of the VM-xms40m: Virtual machine occupies the system's minimum memory-xmx256m: Virtual machine occupies the system's maximum memory-xx:permsize: Minimum heap size. Generally reported insufficient memory, is said that this is too small, heap space remaining less than 5% will be warned, it is recommended to make this slightly larger, but depending on the size of your machine memory to set-xx:maxpermsize: Maximum heap size. This is also appropriate larger, so if there is a problem, first adjust the-xms40m: set it smaller, OK, 1g memory recommended set to:-vmargs-xms128m-xmx512m-xx:permsize=256m-xx:maxpermsize= 512M where-xx:permsize=64m can be set larger, but not more than maxpermsize-xmx512m 5% is 25.6M, theoretically requires that the value of-XMX and-xx:maxpermsize must be greater than 25.6M
--------------------------------------------------------------------------------------------------------------- -----------
-hotspot-xms32m-xmx256m-xx:maxpermsize=128m
Eclipse Memory Overflow Settings