The reason for automatic shutdown may be that there is a problem with the setting of the eclipse. ini file in the eclipse directory. The general setting of the INI file mainly includes the following items:-vmargs
-Xms40m
-Xmx256m
-XX: permsize = 64 m
-XX: maxpermsize = m. -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.Therefore, if a problem occurs, first adjust-xms40m: to make the settings smaller, it will be OK. We recommend that you set 1 GB memory:
-Vmargs
-Xms128m
-Xmx512m
-XX: permsize = 256 m
-XX: maxpermsize = 512m where-XX: permsize = 64 m can be set to a larger value, but cannot exceed maxpermsize
-5% of xmx512m is 25.6 m. Theoretically, the value of-xmx and-XX: maxpermsize must be greater than 25.6 m.