My Oracle Support Banner

EM 12c, EM 13c : Enterprise Manager Cloud Control emctl start agent Fails: OutOfMemoryError Message, or: Consult emctl.log and emagent.nohup (Doc ID 1952592.1)

Last updated on SEPTEMBER 30, 2024

Applies to:

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

Goal

Enterprise Manager (EM) 12c Cloud Control Agent start fails with an out-of-memory error:

$/AGENT_INST/bin/emctl start agent

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Starting agent .........................................Consult emctl.log and emagent.nohup in: /<AGENT_INST>/sysman/log

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

----- Tue Dec  9 13:19:52 2014::663::Agent Launched with PID 724 at time Tue Dec  9 13:19:52 2014 -----
2014-12-09 13:19:52,270 [1:main] WARN - Missing filename for log handler 'wsm'
2014-12-09 13:19:52,281 [1:main] WARN - Missing filename for log handler 'opss'
2014-12-09 13:19:52,282 [1:main] WARN - Missing filename for log handler 'opsscfg'
Agent is going down due to an OutOfMemoryError
----- Tue Dec  9 13:20:24 2014::663::Checking status of EMAgent : 724 -----
----- Tue Dec  9 13:20:29 2014::663::Checking status of EMAgent : 724 -----
----- Tue Dec  9 13:20:29 2014::663::EMAgent exited at Tue Dec  9 13:20:29 2014 with return value 57. -----
----- Tue Dec  9 13:20:29 2014::663::EMAgent will be restarted because of an Out of Memory Exception. -----
----- Tue Dec  9 13:20:29 2014::663::Restarting EMAgent. -----

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

2014-12-09 13:20:05,048 [33:EE0F717F:HTTP Listener-33 - Acceptor0 SslSelectChannelConnector@0.0.0.0:3872] WARN - *jetty*: EXCEPTION
java.lang.OutOfMemoryError: Java heap space
2014-12-09 13:20:05,471 [33:EE0F717F] WARN - *jetty*: EXCEPTION
java.lang.OutOfMemoryError: Java heap space

 OR

$ /AGENT_INST/bin/emctl start agent

fails with error
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Agent status could not be determined. Check the agent process
Consult emctl.log and emagent.nohup in: /<AGENT_INST>/sysman/log

OR

Any emctl start/status command fails with following exception

The following exception occurred:
java.net.UnknownHostException:agenthostname,<DOMAIN_NAME>
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)

 OR

$ /AGENT_INST/bin/emctl start agent

fails with error
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.

Starting agent .................................................. failed.
EMAgent is Thrashing. Exiting watchdog
Consult emctl.log and emagent.nohup in: /<AGENT_INST>/sysman/log

 

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.