CareerAspirant
CareerAspirant

Reputation: 11

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 ?

Upvotes: 0

Views: 6475

Answers (2)

Vineet Reynolds
Vineet Reynolds

Reputation: 76709

In Windows, it is the standalone.bat file and not the standalone.conf file that must be modified with the new JAVA_OPTS environment variable.

Upvotes: 2

Duncan Krebs
Duncan Krebs

Reputation: 3502

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"

Upvotes: 7

Related Questions