aspose file tools*
The moose likes JBoss/WildFly and the fly likes Problem starting Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Problem starting Jboss" Watch "Problem starting Jboss" New topic
Author

Problem starting Jboss

Nancy Dawson
Greenhorn

Joined: Sep 17, 2006
Posts: 13
Hello All,
I am having a problem staring up my Jboss Server it is giving me this error

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.


I know with Java I would need to start java with �Xms128m �Xmx512m. But I don�t know the solution with Jboss
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10207
    
166

The message indicates that you have set some heap size which is higher than what your machine can make available. What is your machine configurations and what heap size have you set while starting JBoss?


[My Blog] [JavaRanch Journal]
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 230
Originally posted by Nancy Dawson:
Hello All,
I am having a problem staring up my Jboss Server it is giving me this error

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.


I know with Java I would need to start java with �Xms128m �Xmx512m. But I don�t know the solution with Jboss



just check classpath properly and set JAVA_HOME to jdk home directory
this problem is due to jboss unable to fond jdk
Sree Raj
Greenhorn

Joined: Jan 18, 2009
Posts: 1
For anyone who reach this link too late:


You get error since it is using up too much memory while starting up. You can control the memory that it used in the file run.conf under the bin directory of jboss. Open run.conf and search for 'mem' and you will see the line where you can set the memory which will used for the heap. It was 256 and 512 for mine and i changed to 128 and 256 and it worked fine.
nancy andrew
Ranch Hand

Joined: Jan 19, 2010
Posts: 30
I am facing the similar issue. I tried changing the memory to 128 and 256. But it did not work. Any other solution
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

tried changing the memory to 128 and 256

I hope this is a typo because a heap setting of 128 bytes min and 256 bytes max is not going to work. Yes, bytes, not megabytes or kilobytes, bytes.

It would be better if you posted the exact settings you made (the JAVA_OPTS settings from the startup script), and posted the exact error you got. And you should have started a new post rather than reviving one that started 6 years ago - creating a new post would have forced you to provide details. See ItDoesntWorkIsUseless


JBoss In Action
 
jQuery in Action, 2nd edition
 
subject: Problem starting Jboss