EM 12c, EM 13c: Enterprise Manager Cloud Control emctl start agent Fails with OutOfMemoryError Message or: Fatal agent error: Target Interaction Manager failed at Startup (Doc ID 1952593.1)

Last updated on MAY 02, 2016

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Symptoms

 $ /AGENT_INST/bin/emctl start agent

Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 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

$/AGENT_INST/sysman/log/emagent.nohup reports following error 

2013-11-01 17:29:38,596 [1:main] WARN - Missing filename for log handler 'opsscfg' Agent is going down due to an OutOfMemoryError

$/AGENT_INST/sysman/log/gcagent.log reports following error

2013-11-01 17:29:19,204 [1:3305B9] INFO - Invoking STARTUP_P1 (1) on Target Interaction Manager
2013-11-01 17:29:23,255 [1:main] FATAL - Fatal error: Target Interaction Manager failed at Startup java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)

OR

$/AGENT_INST/bin/emctl start agent

fails with following error

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Starting agent ........ failed.
Ping Manager failed at Startup
Consult emctl.log and emagent.nohup in: /data/oracle/agent/product/agent12c/agent_inst/sysman/log

/AGENT_INST/sysman/log/gcagent.log reports file IO exception

2014-11-07 21:22:44,286 [1930450:GC.Executor.778231 (oracle_database:sgpssp01_prd:log_full) (oracle_database:sgpssp01_prd:log_full:dumpFull)] ERROR - File not found exception
java.io.FileNotFoundException: /data/oracle/agent/product/agent12c/agent_inst/sysman/emd/state/statemgmt/oracle_database/sgpssp01_prd/SevDiff/1.tmp (Invalid file system control data detected.)

Deleting file has filesystem related error

$ rm /AGENT_INST/sysman/emd/agntstmp.txt

rm: agntstmp.txt not removed.
Invalid file system control data detected

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