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
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
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.
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
Regards,
Tiago
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