Splunk AppDynamics

Installing Java Agent

CommunityUser
Splunk Employee
Splunk Employee

I'm following the 

https://docs.appdynamics.com/display/PRO43/Java+Agent

I'm using  CENTOS

01. 

<>/controller/#/location=GETTING_STARTED_JAVA&timeRange=last_15_minutes.BEFORE_NOW.-1.-1.15

02. JVM i select SUN/Rockit (Is this right?)

03. Configure - allready configured is SaaS

04. Download

05. Install Agent

05.a unzip

05.b Set the value of -javaagent to the path to the Java Agent JAR file.

06. 

$TOMCAT_HOME/bin/catalina.sh

I make some mistake, but how can i find this error?

Regards

Labels (1)
Tags (1)
0 Karma
1 Solution

Brian_Wheeldon
Contributor

The -javaagent term looks OK, but there is not enough information here to determine what went wrong.

Did you check that the path /tmp/appd/javaagent.jar is correct and javaagent.jar is readable by the user that runs Tomcat?

Did Tomcat start? If so, there should be an error message in the Tomcat logs.

Was the agent started? If so, you'll see messages in the Tomcat startup and agent logs in /tmp/appd/<version>/logs/<nodename>/

Regards,

Brian Wheeldon

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Brian,

  You was right, before your tip about rights, i could get started: My Application, but i cannot see my app on AppDynamics, therefore i did a trace like you said:

The -javaagent term looks OK, but there is not enough information here to determine what went wrong.

image.png

Did you check that the path /tmp/appd/javaagent.jar is correct and javaagent.jar is readable by the user that runs Tomcat?

I runed "chmod -R 755 appd" for tomcat user but cannot check using "ls -ld"

Did Tomcat start? If so, there should be an error message in the Tomcat logs.

Yes, It's started, i can see my application right now.

Was the agent started?

I don't know. how can i check if is it my agent start?

If so, you'll see messages in the Tomcat startup and agent logs in /tmp/appd/<version>/logs/<nodename>/

/tmp/appd/<version>/logs/ -  It's empty

image.png

Regards,

Tiago

0 Karma

Brian_Wheeldon
Contributor

Step 2 is correct.

After step 5a, did you follow the instructions at https://docs.appdynamics.com/display/PRO43/Apache+Tomcat+Startup+Settings to add the "-javaagent:<agent_home>/javaagent.jar" term to the JVM startup?

That should work.

Regards,

Brian Wheeldon

0 Karma
Get Updates on the Splunk Community!

Leveraging Detections from the Splunk Threat Research Team & Cisco Talos

  Now On Demand  Stay ahead of today’s evolving threats with the combined power of the Splunk Threat Research ...

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...