gpt4 book ai didi

java - Jboss-eap-6.3 无法为对象堆保留足够的空间

转载 作者:搜寻专家 更新时间:2023-11-01 04:04:13 25 4
gpt4 key购买 nike

我在 32 位 Windows 上运行 Java7。
当我运行 Jboss-eap-6.3 服务器时,每次我尝试运行该程序时都会重复出现以下异常。

  • D:\mysoft\jboss-eap-6.3\bin>standalone.bat
  • 调用 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 的错误.解决方法是从 JAVA_OPTS 行中删除 perm gen 设置:

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

关于java - Jboss-eap-6.3 无法为对象堆保留足够的空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26356305/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com