Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JVM : Could not reserve enough space for object heap

843829Aug 11 2009 — edited Aug 11 2009
Hi,

I am trying to run a java application which has the below setting in the config file,

wrapper.java.mainclass=<some class abc>
wrapper.java.additional.1=-XX:MaxPermSize=512M
wrapper.ntservice.name=<some name>
wrapper.ntservice.displayname=<some name>
wrapper.ntservice.description=<some name>
wrapper.logfile=../logs/taskcontrollerwrapper.log
wrapper.java.maxmemory=1600M


Note the value for the maxmemory, i have given as 1600M. The configuration of the system on which i am running is
Windows 2008 Server 64 bit,
64 bit Machine , 16 GB Ram.

When i start the JVM i get the below error,

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
JVM exited while loading the application.
CTRL-C trapped. Shutting down.


When i change the wrapper.java.maxmemory to 1152M, the JVM starts up properly, but my application fails due to OutOfMemory exception.
Whatever value i give more then 1152M , the JVM does not start up.


Can anyone please help me resolving this.
is there any maximum limit that wrapper.java.maxmemory can take ? or do i need to set anything on the windows front ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2009
Added on Aug 11 2009
4 comments
677 views