Eclipse - 无法创建java虚拟机 [英] Eclipse - Failed to create the java virtual machine

查看:194
本文介绍了Eclipse - 无法创建java虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用以下配置运行Eclipse的问题:

I'm having issue with running my Eclipse with the following config:

eclipse.ini

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
--launcher.defaultAction
openFile
-vm
jdk1.7.0_02/bin
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256M
-Xmx1024M

# Adding this line, I get "Failed to create virtual machine"

-XX:PermSize=512M
-XX:MaxPermSize=512M
-XX:+UseParallelOldGC
-XX:ParallelGCThreads=2
-XX:ThreadPriorityPolicy=1
-Xverify:none
-XX:-UseSplitVerifier

上述配置起作用除了我添加我上面指定的行之外。可能是什么问题?

The above configuration works except when I add the lines I specified above. What could be the problem?

我从具有4GB RAM的Windows 7(64位)机器运行eclipse,虽然在路径中指定的JDK是32位,位工作正常。唯一的问题是如果我添加这些额外的配置参数。

I am running eclipse from a Windows 7 (64-bit) machine with 4GB ram, although the JDK I specified in the path is 32-bit which works just fine. The only problem is if I add those additional config parameters.

推荐答案

eclipse.ini中有两个地方包含

There are two place in eclipse.ini that includes

--launcher.XXMaxPermSize
256m

--launcher.XXMaxPermSize
128m

这篇关于Eclipse - 无法创建java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆