wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Could not create JVM while launching jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Could not create JVM while launching jboss " Watch "Could not create JVM while launching jboss " New topic
Author

Could not create JVM while launching jboss

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 755
Hi,

I tried to Increase memory for jboss Service from eclipse jboss launcher configuration, but when i set Xmx to 2048 it gives me error could not create JVM, but when i set it to 1024 it works fine.

Can anybody tell me the reason for this error.

Thanks & Regards,
Jigar Naik.


Jigar Naik


Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

What are your Xms and Xmx values for the vm?


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 755
XMs is 512 and xms 2048 which is giving error
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

Which OS do you use?

You description reminds me of a problem I had experienced problems on 32-bit Windows, where it was not possible to allocate more than about 1 GB of memory to the JVM, although a lot more of memory was available. The reason was that the JVM requires continuous virtual address space in memory, which was not available due to some device drivers and/or DLLs fragmenting the virtual address space (the DLLs must be mapped to the same virtual address in all processes, therefore loading a DLL at certain virtual memory address range makes that address range occupied in all future processes on the computer). Note that all this business bears no direct relation to the actual memory allocation, just reservation of the virtual address space. (Virtual address space fragmentation is quite complicated problem and I don't recall all the details from the top of my head, but I believe this is the gist of it.)

This problem doesn't exist in 64-bit Windows, because the virtual memory space is so big (2^64) that it is always possible to find many GBs of continuous virtual address space there. I'm not sure whether similar problems exist in other 32-bit systems (Unix, Mac-OS).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not create JVM while launching jboss