问题3-Error occurred during initialization of VM Could not reserve enough space for object heap

时间:2020-12-12 07:25:42

问题3-Error occurred during initialization of VM Could not reserve enough space for object heap

初步断定是内存方面的问题

于是决定修改配置文件

D:\study\eclipse\eclipse\eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

将最后一行改为 -Xmx256m

保存后再次启动eclipse,就正常了。