eclipse在编译android大工程时经常会无响应,卡死,晚上一搜很多解决的博客,配置的文件都是那个,但是数值网上给出的也是有很多,经过测试这个数据有要求的
最后在看完几篇博客后,我按照其他博客大神对其参数的解释说明,重新设置了调整几次后发现这个数据是最好用的,自己想记录下来以后再用,同事也推荐个其他电脑
配置和我差不多的人使用(主要这些参数和电脑的硬件配置息息相关,过高将不能启动eclipse,不信读者可以试试)
介绍下电脑
OS : WIN7 64bit
内存:8G
这个2个参数对那很有用,其他就不列举。
配置文件为eclipse的默认目录下 eclipse.ini 这个文件
配置前,eclipse默认的 配置如下:
-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.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx512m
配置后:
-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.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
768m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms1024m
-Xmx3072m
完美解决,很流畅,没有出现过任何无响应和卡顿, 但是内存比以前中用了很多,以前才4g多点,现在已经跑到6.98g