动态分配内存到eclipse

时间:2011-11-23 05:31:00

标签: eclipse memory-management dynamic-memory-allocation

eclipse.ini中,有一个参数可以设置为动态地为Eclipse分配内存。有人知道它的论点是什么吗?

1 个答案:

答案 0 :(得分:1)

你无法告诉Eclipse需要多少内存。它是一个JVM,所以你必须预先告诉它最大的内存量。 (参见,例如What does Java option -Xmx stand for?

您可以使用eclipse.ini中的-Xmx和-Xms内存选项分配更多内存。 这是我的。请注意最后三行设置内存选项:

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-clean
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1280m
-XX:MaxPermSize=256m
相关问题