"Could not Reserve Enough Space for Object Heap" Error Starting OC4J with 2GB in the JVM (Doc ID 398852.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version 10.1.2.0.0 and later
Linux x86
***Checked for relevance on 24-Jan-2014***
***Checked for relevance on 06-July-2015***

Symptoms

-- Problem Statement:
When attempting to set the heap size for the JVM process to 2GB, there are some errors and OC4J does not start.

Setting the parameters as follows:

"-server -Xms1600m -Xmx2g -Xmn256m -Xss128k -XX:+UseParallelGC -XX:ParallelGCThreads=4"

then, OC4J does not start.

Error occurred during initialization of VM
Could not reserve enough space for object heap

Last Warnings and Errors from DCM
[26/Out/2006:16:28:11.509 -0200] [DCM] [ERROR] [oracle/defaultLogger/ExceptionLogger] [host:
ias8.test.us] [nwaddr: 10.0.0.28] [tid: Deamon Worker for TaskMaster of iAS instance at:
/d2/oracle/products/issuites JVM Id = bfea1d.10e85dacae1.-8000] [userId: oracle] [ecid:
10.0.0.28:52670:1161887287983:1,0] Remote Execute failed: java.lang.OutOfMemoryError
at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1602)
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1553)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
at __Proxy0.deploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)

[26/Out/2006:16:28:11.527 -0200] [DCM] [ERROR] [oracle/defaultLogger/ExceptionLogger] [host:
ias8.test.us] [nwaddr: 10.0.0.28] [tid: Thread-23] [userId: oracle] [ecid:
10.0.0.28:52670:1161887287983:1,0] [TM] Remote evaluate failed.
Current StackTrace:
java.lang.Throwable
at oracle.ias.sysmgmt.task.TaskMaster.remote_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.evaluate(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deployCommon(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.deploy(Unknown Source)
at oracle.sysman.ias.sta.oc4j.DeployAppAdminObj.deploy(DeployAppAdminObj.java:164)
at oracle.sysman.ias.sta.oc4j.DeployWiz.doDeployWork(DeployWiz.java:2593)
at oracle.sysman.ias.sta.oc4j.DeployWiz.access$000(DeployWiz.java:178)
at oracle.sysman.ias.sta.oc4j.DeployWiz$DeployBean.doWork(DeployWiz.java:3097)
at oracle.sysman.emSDK.eml.util.iAS.ProcessingBean$ProcessingThread.run(ProcessingBean.java:264)
at java.lang.Thread.run(Thread.java:534)

remote exception: java.lang.OutOfMemoryError
remote exception StackTrace:
java.lang.OutOfMemoryError
at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1602)
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1553)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
at __Proxy0.deploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)

 

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