Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

After installing JBOSS EAP 5.1.1 on my Linux Server, I am getting following error when I run JBOSS with command run.sh

JBoss Bootstrap Environment

JBOSS_HOME: /usr/lib/jboss-eap-5.1/jboss-as

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true

CLASSPATH: /usr/lib/jboss-eap-5.1/jboss-as/bin/run.jar

=========================================================================

Error occurred during initialization of VM Could not reserve enough space for object heap

share|improve this question
    
Is this a virtual Linux server? –  Kenny Rasschaert Jan 24 '12 at 6:36

1 Answer 1

http://javahowto.blogspot.in/2006/06/6-common-errors-in-setting-java-heap.html

The error seems to be saying that the virtual memory size of the machine is smaller than the maximum heap size we are defining via Xms1303m -Xmx1303m. I have changed it to -Xms256m -Xmx512m and it started working in my local Windows box.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.