I have Java7 running on 32-bit Windows.
When I am running Jboss-eap-6.3 server, I am getting the following exception repeatedly each time I try to run the program.
我在32位的Windows上运行Java7。当我运行Jboss-eap-6.3服务器时,每次尝试运行程序时,我都会重复地得到以下异常。
-
D:\mysoft\jboss-eap-6.3\bin>standalone.bat
- D:\ mysoft \ \ bin > standalone.bat jboss eap - 6.3
- Calling
D:\mysoft\jboss-eap-6.3\bin\standalone.conf.bat
- 调用D:\ mysoft \ \ bin \ standalone.conf.bat jboss eap - 6.3
- Setting JAVA property to
C:\Program Files\Java\jdk1.7.0_10\bin\java
- 将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.
Can any one help me?
有人能帮我吗?
5 个解决方案
#1
2
It's actually a problem with the startup script. Here's the bug for that https://bugzilla.redhat.com/show_bug.cgi?id=956281. The workaround is to remove the perm gen setting from the JAVA_OPTS
line:
这实际上是启动脚本的问题。这里是https://bugzilla.redhat.com/show_bug.cgi?id=956281的bug。解决方法是将perm gen设置从JAVA_OPTS行中删除:
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
#2
3
You can also resolve this by changing JAVA_OPTS value under standalone.conf.bat.
您还可以通过在standalone.conf.bat下更改JAVA_OPTS值来解决这个问题。
old
老
rem # JVM memory allocation pool parameters - modify as appropriate.
set "JAVA_OPTS=-Xms1303M -Xmx1303M -XX:MaxPermSize=256M"
new
新
set "JAVA_OPTS=-Xms256M -Xmx256M -XX:MaxPermSize=256M"
#3
1
What is the memory available with your machine? I see the parameters -Xms1G -Xmx1G
. This means that your JVM will be started with Xms=1GB
amount of memory and will be able to use a maximum of Xmx=1GB
amount of memory.
你的机器可用的内存是多少?我看到参数-Xms1G -Xmx1G。这意味着JVM将从Xms=1GB的内存开始,并且可以使用最大的Xmx=1GB的内存。
I think, may be you reduce the amount of memory (like -Xmx2048m -Xms256m
).
我认为,可能是您减少了内存的数量(比如-Xmx2048m -Xms256m)。
I hope it helps.
我希望它有帮助。
You can refer to this.
你可以参考这个。
#4
0
According to the above Federico Sierra answer under jboss-eap-6.3\domain\configuration
location host.xml
file is present. In that file I just commented the following line:
根据以上在jboss-eap-6.3\domain\配置位置主机下的Federico Sierra答案。xml文件。在这个文件中,我只评论了下面一行:
<permgen size="256m" max-size="256m"/>
It's working. Thanks Federico Sierra.
这是工作。谢谢费德里科•塞拉。
#5
0
If it still doesn't work after trying all above options. Go To: jboss-eap-6.4\domain\configuration -> host.xml, and have this size set up
如果在尝试了以上所有的选项后仍然不能工作。转到:jboss-eap-6.4\domain\configuration ->主机。并设置这个大小
<heap size="256m" max-size="256m"/>
And also go to: jboss-eap-6.4\standalone\configuration -> standalone.xml, have this size set up
也可以转到:jboss-eap-6.4\独立的\配置->。xml,设置这个大小。
set "JAVA_OPTS=-Xms256M -Xmx256M -XX:MaxPermSize=256M"
And now Restart your Eclipse and try Run your Jboss6.1+ server it should be working.
现在重新启动Eclipse,并尝试运行Jboss6.1+服务器。
Also set this in host.xml: <permgen size="256m" max-size="256m"/>
Good Luck.
还要在主机中设置这个。xml:
#1
2
It's actually a problem with the startup script. Here's the bug for that https://bugzilla.redhat.com/show_bug.cgi?id=956281. The workaround is to remove the perm gen setting from the JAVA_OPTS
line:
这实际上是启动脚本的问题。这里是https://bugzilla.redhat.com/show_bug.cgi?id=956281的bug。解决方法是将perm gen设置从JAVA_OPTS行中删除:
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
#2
3
You can also resolve this by changing JAVA_OPTS value under standalone.conf.bat.
您还可以通过在standalone.conf.bat下更改JAVA_OPTS值来解决这个问题。
old
老
rem # JVM memory allocation pool parameters - modify as appropriate.
set "JAVA_OPTS=-Xms1303M -Xmx1303M -XX:MaxPermSize=256M"
new
新
set "JAVA_OPTS=-Xms256M -Xmx256M -XX:MaxPermSize=256M"
#3
1
What is the memory available with your machine? I see the parameters -Xms1G -Xmx1G
. This means that your JVM will be started with Xms=1GB
amount of memory and will be able to use a maximum of Xmx=1GB
amount of memory.
你的机器可用的内存是多少?我看到参数-Xms1G -Xmx1G。这意味着JVM将从Xms=1GB的内存开始,并且可以使用最大的Xmx=1GB的内存。
I think, may be you reduce the amount of memory (like -Xmx2048m -Xms256m
).
我认为,可能是您减少了内存的数量(比如-Xmx2048m -Xms256m)。
I hope it helps.
我希望它有帮助。
You can refer to this.
你可以参考这个。
#4
0
According to the above Federico Sierra answer under jboss-eap-6.3\domain\configuration
location host.xml
file is present. In that file I just commented the following line:
根据以上在jboss-eap-6.3\domain\配置位置主机下的Federico Sierra答案。xml文件。在这个文件中,我只评论了下面一行:
<permgen size="256m" max-size="256m"/>
It's working. Thanks Federico Sierra.
这是工作。谢谢费德里科•塞拉。
#5
0
If it still doesn't work after trying all above options. Go To: jboss-eap-6.4\domain\configuration -> host.xml, and have this size set up
如果在尝试了以上所有的选项后仍然不能工作。转到:jboss-eap-6.4\domain\configuration ->主机。并设置这个大小
<heap size="256m" max-size="256m"/>
And also go to: jboss-eap-6.4\standalone\configuration -> standalone.xml, have this size set up
也可以转到:jboss-eap-6.4\独立的\配置->。xml,设置这个大小。
set "JAVA_OPTS=-Xms256M -Xmx256M -XX:MaxPermSize=256M"
And now Restart your Eclipse and try Run your Jboss6.1+ server it should be working.
现在重新启动Eclipse,并尝试运行Jboss6.1+服务器。
Also set this in host.xml: <permgen size="256m" max-size="256m"/>
Good Luck.
还要在主机中设置这个。xml: