Monday, March 21, 2016

OEM 12c java.lang.OutOfMemoryError: Java heap space

agent bin directory: /opt/app/oracle/agentHome/core/12.1.0.2.0/bin

agent logs directory: /opt/app/oracle/agentHome/agent_inst/sysman/log

cat gcagent.log

and error looks like below

2016-03-21 10:35:47,412 [5421649:68EFA393:CRSeOns] INFO - uncaughtException handler with
java.lang.OutOfMemoryError: Java heap space

2016-03-21 10:35:50,446 [1:main] ERROR - agent main throw an error
java.lang.OutOfMemoryError: Java heap space

[153032:GC.Executor.70250] ERROR - Critical error:
oracle.sysman.gcagent.task.TaskZombieException: task declared as a zombie

emd properties directory: /opt/app/oracle/agentHome/agent_inst/sysman/config



1) Stop the agent:
./emctl stop agent

2) Back up the emd.properties file[../agent_inst/sysman/config] and edit as follows:

a) Add these lines:

_zombieSuspensions=true
_canceledThreadWait=210

b) Change the indicated line as follows:

from :
agentJavaDefines=-Xmx128M -XX:MaxPermSize=96M

to:
agentJavaDefines=-Xmx512M -XX:MaxPermSize=96M


3) Start the agent:
./emctl start agent

No comments:

Post a Comment

Featured Post

Apply Patch 22191577 latest GI PSU to RAC and DB homes using Opatch auto or manual steps

Patch 22191577: GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.4.160119 (JAN2016) Unzip the patch 22191577 Unzip latest Opatch Version in or...