eclipse 增加Eclipse的最大堆内存

示例

要增加Eclipse使用的最大堆内存量,请编辑eclipse.iniEclipse安装目录中的文件。

该文件指定用于启动Eclipse的选项,例如要使用的JVM,以及JVM的选项。具体来说,您需要编辑-XmxJVM选项的值(如果不存在,请创建一个)。

以下是将最大堆内存设置为1 GB(1024m)的示例配置。相关行是-Xmx1024m-这将替换-Xmx*您的配置中的现有行:

-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
C:/Users/user1/.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vmargs
-Xms256m
-Xmx1024m