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!

Celebrating the Winners of the ‘Splunk Build-a-thon’ Hackathon!

We are thrilled to announce the winners of the Splunk Build-a-thon, our first-ever hackathon dedicated to ...

Why You Should Register for Splunk University at .conf25

Level up before .conf25 even begins Splunk University is back in Boston, September 6–8, and it’s your chance ...

Building Splunk proficiency is a marathon, not a sprint

Building Splunk skills is a lot like training for a marathon. It’s about consistent progress, celebrating ...