简体   繁体   中英

JBOSS not starting from cmd

I have JBOSS installed in my Windows 7 machine., I can start JBOSS from Eclipse but it doesn't publish and when I try to run the standalone.bat file from the Bin directory it throws this error ,

  JAVA_OPTS: -client -Dprogram.name=standalone.bat **-Xms1303M -Xmx1303M** -XX:MaxPe
rmSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInter
val=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -D
jboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standa
lone.xml

**Error occurred during initialization of VM**
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.

I did research the forum and many are suggesting to change the -Xms1303M to -Xms256M ., I edited the standalone.conf file in an editor but it is not getting reflected and getting the same error again.

Could someone please guide me ?

Most likely, you are using or running jboss on a 32 bit jdk and the memory params are out of range or exceed the limits of a 32 bit jdk. Either upgrade to a 64 bit jdk or add this line in your run.conf in jboss/bin, remove the jvm args from your command line and see if jboss starts.

set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M"

在Windows中,必须使用新的JAVA_OPTS环境变量修改的是standalone.bat文件,而不是standalone.conf文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM