Oracle Enterprise Manager Agent restarts frequently

Oracle Enterprise Manager Agent restarts frequently

Issue:
OEM agent restarts frequently

Steps to verify and fix the issue:

  • $ cd $AGENT_HOME
  • $ ./emctl stop agent
                               Stopping agent ….. stopped.
  • $ps -ef|grep agent
  • $ps -ef|grep java
                     Incase if the above does not result anything, then ignore that commands, if the above commands results in no output means there are no process running.
  • $ ./emctl unsecure agent
                           Checking Agent for HTTP… Done.
                           Agent is already stopped… Done.
                           Unsecuring agent… Started.
                           OMS is locked. Cannot unsecure the Agent.
                           Unsecuring Agent… Failed.
  • $ ./emctl secure agent
                                   Agent is already stopped… Done.
                                    Securing agent… Started.
                                    Enter Agent Registration Password :
                                   Securing agent… Successful.
  • Take backup and edit $AGENT_HOME/sysman/config/emd.properties file
                  Note : Tune -Xmx and -XX:MaxPermSize parameters,in the below example heap value is increased to 512M from 128M.
                  Incase if this is already set at 512M then increase this to 1024M
                 Have done twice from 128M to 512M and from 512M to 1024M
before
  •  $ cat emd.properties|grep -i agentJavaDefines
                                    agentJavaDefines=-Xmx512M -XX:MaxPermSize=128M
After
  • $ cat emd.properties|grep -i agentJavaDefines
                   agentJavaDefines=-Xmx1024M -XX:MaxPermSize=128M
  • $ ./emctl start agent
                    Starting agent …………………….. started.
  • $ ./emctl pingOMS
                           —————————————————————
                            pingOMS completed successfully
  • $ ./emctl upload agent
                —————————————————————
                 upload completed successfully
  • $ ./emctl status agent
                  —————————————————————
                 Agent is Running and Ready

Summary of all commands :

  • cd $AGENT_HOME/bin
  • emctl stop agent
  • ps -ef|grep agent
  • ps -ef|grep java
  • emctl unsecure agent
  • emctl secure agent
  • Modify the -Xmx and -XX:MaxPermSize parameter
  • emctl start agent
  • emctl pingOMS
  • emctl upload agent
  • emctl status agent
See also: