Agent down due to OutOfMemoryError

Agent Startup failed solution:

Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Starting agent …………………………………………. failed.
Fatal agent error: Target Interaction Manager failed at Startup
Fatal agent error: Target Interaction Manager failed at Startup
Fatal agent error: Target Interaction Manager failed at Startup
EMAgent is Thrashing. Exiting watchdog
Consult emctl.log and emagent.nohup in: /oracle/app/oracle/Agent12c4/agent_inst/sysman/log

[oracle@rac2 ~]$

Analysis:

/oracle/app/oracle/Agent12c4/agent_inst/sysman/log

emagent.nohup:

Agent is going down due to an OutOfMemoryError
—– Sun Nov 15 03:20:44 2015::18184::EMAgent will be restarted because of an Out of Memory Exception. —–

gcagent.log

2015-11-15 03:20:35,619 [1:main] ERROR – Critical error:
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2882)

Solution:
To resolve this Outof Memory issue we need to increase java heap size in “emd.properties”.

File location: /oracle/app/oracle/Agent12c4/agent_inst/sysman/config

vi emd.properties

Old:

#agentJavaDefines=-Xmx208M -XX:MaxPermSize=96M

New:

agentJavaDefines=-Xmx512M -XX:MaxPermSize=96M
_zombieSuspensions=true
_canceledThreadWait=210
_cancelThreadTimeout=300

[oracle@rac2 config]$ emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Starting agent ………………………. started.

[oracle@rac2 config]$ emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
—————————————————————
Agent Version          : 12.1.0.5.0
OMS Version            : 12.1.0.5.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /oracle/app/oracle/Agent12c4/agent_inst
Agent Log Directory    : /oracle/app/oracle/Agent12c4/agent_inst/sysman/log
Agent Binaries         : /oracle/app/oracle/Agent12c4/core/12.1.0.5.0
Agent Process ID       : 24177
Parent Process ID      : 24092
Agent URL              : https://rac2:3872/emd/main/
Local Agent URL in NAT : https://rac2:3872/emd/main/
Repository URL         : https://rac2:4903/empbs/upload
Started at             : 2015-11-15 03:31:36
Started by user        : oracle
Operating System       : Linux version 2.6.32-431.el6.x86_64 (amd64)
Last Reload            : (none)
Last successful upload                       : 2015-11-15 03:32:13
Last attempted upload                        : 2015-11-15 03:32:13
Total Megabytes of XML files uploaded so far : 0.23
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 44.09%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2015-11-15 03:32:01
Last successful heartbeat to OMS             : 2015-11-15 03:32:01
Next scheduled heartbeat to OMS              : 2015-11-15 03:33:01

—————————————————————
Agent is Running and Ready
[oracle@rac2 config]$

Refrence:

EM12c: Enterprise Manager 12c Cloud Control Agent Stops with Logged (gcagent.log) Message: ERROR – Critical error: java.lang.OutOfMemoryError: Java heap space (Doc ID 1947595.1)

  • November 15, 2015 | 16 views