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

Jboss starting heap issue

 
nancy andrew
Ranch Hand
Posts: 30
  • 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 am using a dell laptop 2gb ram, Core 2 duo. the heap entry given is

128m and 512m . I tired to change it also to 1024 and 1024 but still the same issue. Is this problem related to java installation in my machine.Kindly help
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have 512MB or free memory on your laptop?

How are you starting JBoss AS? From a command line using the run script? If so, then a banner showing the JAVA_OPTS settings is printed, please post that.
 
nancy andrew
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Thanks for the reply.
Actually there is a product called lombardi which uses process server as JBOSS. So when i click the start up exe for starting Jboss i get the above mentioned Error.
JAVA_OPTS is not printed.
I have a hard disk of 320 gb and currently only 75gb is free space available
Installed Physical Memory (RAM) 2.00 GB
Total Physical Memory 1.96 GB
Available Physical Memory 767 MB
Total Virtual Memory 3.92 GB
Available Virtual Memory 1.40 GB
Page File Space 1.96 GB

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then try this. Open a command prompt and enter the following:

set _JAVA_LOADER_DEBUG=1

Now from this same command prompt, run the exe that you mentioned. That means you will have to type the entire path to the exe into the command line, or optionally you can drag-and-drop the exe from Explorer into the command prompt window. Hopefully the option you set will cause some debug output to be placed in the command prompt window. Post that output inot this thread by copying and pasting the text from the command prompt window.

If this doesn't work, you will have to find out exactly how that exe starts up JBoss AS. Does it call a specific batch file? Does it load the JVM directly? You might have to ask these questions to the company you got Lombardi from.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic