Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem starting Jboss

 
Nancy Dawson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic