启动eclipse报错 could not create the java virtual machine

   试着装了ede 4.x,启动eclipse时出现“could not create the java virtual machine”。知道是内存不足,导致出错的。查看eclipse安装文件夹下的eclipse.ini文件,内容如下:

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
-showlocation
-vmargs
-Xms1024m
-Xmx1536m
-Xgcpolicy:optavgpause


修改如下:

-showlocation
-vmargs

-XX:PermSize=256M
-XX:MaxPermSize=256m
-Xms1024m
-Xmx1024m
-Xgcpolicy:optavgpause

启动正常。


百度了一下,添加几个参考链接
JVM启动参数小结: http://pclfs1983.iteye.com/blog/479046

JVM官方地址: http://java.sun.com/j2se/1.4.2/docs/guide/vm/index.html
标准和非标注参数(for windows): http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html
非 stable参数: http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp

你可能感兴趣的:(java,eclipse,jvm,J2SE,百度)