我在 32 位 Windows 上运行 Java7。
当我运行 Jboss-eap-6.3 服务器时,每次尝试运行该程序时都会重复出现以下异常。
-
D:\mysoft\jboss-eap-6.3\bin>standalone.bat
- Calling
D:\mysoft\jboss-eap-6.3\bin\standalone.conf.bat
- 将 JAVA 属性设置为
C:\Program Files\Java\jdk1.7.0_10\bin\java
JBoss Bootstrap Environment
JBOSS_HOME: "D:\mysoft\jboss-eap-6.3"
JAVA: "C:\Program Files\Java\jdk1.7.0_10\bin\java"
JAVA_OPTS: "-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-Tra
ceClassUnloading -client -Dprogram.name=standalone.bat -Xms1G -Xmx1G -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.policy-per
missions=true -Djboss.modules.system.pkgs=org.jboss.byteman"
...
Error occurred during initialization of 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.
谁能帮我?
其实是启动脚本的问题。这是这个的错误https://bugzilla.redhat.com/show_bug.cgi?id=956281 https://bugzilla.redhat.com/show_bug.cgi?id=956281。解决方法是删除perm gen设置从JAVA_OPTS
line:
Cause: The max perm gen space parameter is causing the JVM to not be created, which then prevents the server from starting. This is specifically on Windows 8 32-bit JVM.
Consequence: The server will not start.
Workaround (if any): Remove the -XX:MaxPermSize=256m
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)