我在启动JBOSS 7 AS服务器时遇到错误,如下所示......
JBoss引导环境
JBOSS_HOME:C:\ EAP-6.0.0.GA\jboss-eap-6.0
JAVA:C:\ Program Files\Java\jdk1.7.0\bin\java
JAVA_OPTS:-client -Dprogram.name = standalone.bat -Xms1303M -Xmx1303M -XX:MaxPermSize = 256M
VM初始化期间发生错误
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Press any key to continue . . .
Run Code Online (Sandbox Code Playgroud)
我面临同样的问题.根据以上评论,我创建了一个JAVA_OPTS
以value
命名的环境变量
-client -Dprogram.name=standalone.bat -Xms512M -Xmx512M -XX:MaxPermSize=128M
希望这更有帮助.