Professional Documents
Culture Documents
Reference Note : How to Modify or Increase Agent JVM Heap & Permgen Memory -
java.lang.OutOfMemoryError Reported in gcagent.log (Doc ID 1399201.1)
Reference Note: emctl start agent Fails With 'Target Manager failed at Startup:
targets.xml was rejected: loaded with a wrong agent token' Reported in gcagent.log
(Doc ID 1384366.1)
2014-12-31 03:51:17,692 [1:main] ERROR - Agent failed to Startup for Target Manager
in step 2
oracle.sysman.gcagent.tmmain.lifecycle.AgentStartupException: targets.xml was
rejected: loaded with a wrong agent token
to fix this we took a bakcup of targets.xml and then edited the targets.xml, and
removed all the tags except the the below. and tried to restart the agent.
This worked and the agent was started, but as we had removed the target entries
from the xml file, the agent was unable to list/recognize the targets.
To fix that we used the below commands..
cp targets.xml targets.xml_31dec
************************
In case the targets.xml is determined to be valid, try the following to correct the
issue:
Remove the AGENT_TOKEN attribute from the Targets tag in the targets.xml file.
Start the agent (the agent will recreate AGENT_TOKEN attribute using the current
encryption key).
********************************
But instead of removing the agent_token completely we used the new value that was
generated in the targets.xml that was re-populated in the above step 4.
So to do this, Re-stored the targets.xml from the backup taken in step 4 and
replaced the AGENT_TOKEN with the new value generated
mv targets.xml targets.xml_targetsmissing
cp targets.xml_31dec targets.xml