Title
"Error occurred during initialization of VM" when starting up OC4J_SOA

Date
2008-09-12

Summary
The Oracle AIA FP 2.2 Installation Guide has a section that states:
    Configuring Fusion Middleware Memory Settings
    To configure Fusion Middleware memory settings:
    1. Log on to Oracle Enterprise Manager.
    2. Click on "oc4j_soa."
    3. Access the Administration tab.
    4. Click on "Server Properties" and adjust settings on this page as follows:
        - Initial Heap Size: Set to 2048M
        - Max Heap Size: Set to 2048M
        - Under Options, ensure the following parameter is updated or set:
            XX:MaxPermSize=1024M
    5. Restart the server.
However, when you attempt to startup the oc4j_soa container, it fails and the following error appears in the log file default_group~oc4j_soa~default_group~1.log:
    --------
    08/09/12 11:36:33 Start process
    --------
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    
    --------
    08/09/12 11:37:54 Start process
    --------
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    
Details
1. Even though my test server had enough memory, the exception above appeared when the settings were modified as follows:
OLD: -XX:MaxPermSize=128M -ms512M -mx1024M
NEW: -XX:MaxPermSize=1024M -ms2048M -mx2048M

To work around this, just restore the original values, and the installation will complete successfully.

How this performs under load remains to be seen.

Applicable Versions
Oracle SOA Suite 10g (10.1.3.4)
Oracle Application Integration Architecture Foundation Pack 2.2 for Microsoft Windows (32-bit)

References
Oracle Application Integration Architecture Foundation Pack 2.2: Installation Guide Release 2.2.1 E12762-01.pdf (included in V13542-01.zip)
Ahmed Aboulnaga

.com .com