'Could Not Reserve Enough Space for Object Heap' - Domain Fails to Start in Oracle GlassFish Server When Using 32 Bit JVM (Doc ID 1357029.1)

Last updated on APRIL 04, 2017

Applies to:

Oracle GlassFish Server - Version 2.1 to 3.1.2 [Release 2.1 to 3.1]
Information in this document applies to any platform.
***Checked for relevance on 22-Feb-2013***

Symptoms


Oracle Glassfish Server fails to start on Windows when heap size is set greater than 2GB and you are using a 32-bit JVM. The domain fails to start with the error:

# asadmin.bat start-domain <domain name>
Waiting for DAS to start. Error starting domain: <domain name>.
This server exited prematurely with exit code 1.
Before it died, it produced the following output:

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

Command start-domain failed



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms