Verify APM Java Agent Deployment
You can verify if the APM Java agent deployment was successful by checking the user interface and examining the logs.
Check the User Interface: Trace Explorer
After the APM Java agent is successfully deployed, you can go to Trace Explorer and verify if the trace data from the application server is being uploaded. For information, see Monitor Traces in Trace Explorer.
Examine the APM Java Agent Logs
After an APM Java agent is successfully deployed, a new log
directory is created in <Destination
Directory>/oracle-apm-agent. Note that the <Destination
Directory> is where the APM Java agent is provisioned, for example,
$DOMAIN_HOME for the Oracle WebLogic Server.
To verify if the APM Java agent deployment was successful:
- Verify that the
logdirectory is created by running the following command:cd <Destination Directory>/oracle-apm-agent ls -l - Verify that the
logdirectory contains the following log files:AgentErrors.logAgent.logAgentStartup.logAgentStatus.log
Note that if all the expected log files were not created, then the APM Java agent deployment was not successful.
- Open the
AgentStartup.logfile and verify if the following message is displayed:Agent successfully initialized - Look for agent activity in the
AgentStatus.logfile.As the APM Java agent starts gathering and uploading trace data to Application Performance Monitoring, it logs short status messages in the
AgentStatus.logfile. This indicates that the APM Java agent is active.
If the above verification steps fail, check that the running process for
the application server has the javaagent in the command line.
ps -ef | grep ApmAgentIf the above command
does not list the application process, ensure that any environment variable is not
overriding the application server startup options. For example: If you are using
Apache Tomcat, ensure the CATALINA_OPTS is not overriden elsewhere
via setenv.sh or any external setting.