修改Eclipse内存值
方法:
在Eclipse安装目录中找到eclipse.ini文件,打开内容如下:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms4096m
-Xmx4096m
其中: Xms 表示虚拟机占用的最小内存。
Xmx 表示虚拟机占用的最大内存。
根据计算机内存量的多少进行合理分配即可。(尽量要大些)