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!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...