eclipse 4.4.2 eclipse.ini参数配置 PC内存4G举例

-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.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms64m
-Xmx1024m
====================================================
name=Eclipse Platform
id=org.eclipse.platform
version=4.4.2
====================================================

--launcher.XXMaxPermSize Permanent Generation space,是指内存的永久保存区域
推荐物理内存的1/4,不足会报OutOfMemoryError: PermGen

-Xms64m 虚拟机占用系统的最小内存 JVM初始分配的内存由-Xms指定,推荐默认是物理内存的1/64(实际上由于我每次看到eclipse.exe进程占到700多M,所以我调到1024M,结果变快)

-Xmx1024m 虚拟机占用系统的最大内存 最大分配的内存由-Xmx指定,推荐默认是物理内存的1/4。

PermSize(4.4.2没有)和MaxPermSize如果设置为相同还可以在一定程度上提高性能,因为,PermSize在不断的变化中会需要转移其中的数据。如果固定了以后,则可以减少每次扩大PermSize带来的性能损失。

猜你喜欢

转载自xiongjiajia.iteye.com/blog/2307161
今日推荐