cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unable to get it work with tomcat

qa1
Explorer

 

I put below in both tomcat/bin/setenv.sh and tomcat/conf/tomcat.conf

export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/home/centos/appagent/javaagent.jar"

 

as you see all users were given RW to /home/centos/appagent

 

drw-rw-rw-. 2 centos centos      64 Nov  6 16:26 conf
-rw-rw-rw-. 1 centos centos   55783 Nov  6 16:25 jackson-annotations-2.8.1.jar
-rw-rw-rw-. 1 centos centos     198 Nov  6 16:26 jackson-annotations-2.8.1.jar.asc
-rw-rw-rw-. 1 centos centos  280014 Nov  6 16:25 jackson-core-2.8.1.jar
-rw-rw-rw-. 1 centos centos     198 Nov  6 16:26 jackson-core-2.8.1.jar.asc
-rw-rw-rw-. 1 centos centos 1230290 Nov  6 16:25 jackson-databind-2.8.1.jar
-rw-rw-rw-. 1 centos centos     198 Nov  6 16:26 jackson-databind-2.8.1.jar.asc
-rw-rw-rw-. 1 centos centos  143973 Nov  6 16:25 javaagent.jar
-rw-rw-rw-. 1 centos centos     198 Nov  6 16:26 javaagent.jar.asc
-rw-rw-rw-. 1 centos centos    3481 Nov  6 16:25 readme.txt
-rw-rw-rw-. 1 centos centos     198 Nov  6 16:26 readme.txt.asc
-rw-rw-rw-. 1 centos centos   27037 Nov  6 16:25 uaruleanalyzer.jar
-rw-rw-rw-. 1 centos centos     198 Nov  6 16:26 uaruleanalyzer.jar.asc
drw-rw-rw-. 9 centos centos    4096 Nov  6 16:26 ver4.4.1.0

 

any pointers would be helpful.

 

Thanks!

Andy

11 REPLIES 11

Sir ;

Thank you a lot for your quick responses . Just before I was about to leave it you kept me working .

 

Any way , I tried to execute version command and it returns below text . At some third party blog I found hint to add -Dappagent.install.dir="C:/ABHIROOP/WORK/POC/appdynamics/appagent" as part of JVM and then on restart application I found such logs started creating and dashboard reflects my applications .

 

I wish to have docs.appdynamics updated [ i.e. -Dappagent.install.dir is one imp argument]   or may be it is specific case as I use tomcat [ tomcat-9.0.7.B.RELEASE ] server of pivotal implementation in SpringSourceToolSuite.

 

 

C:\Users\abhiroop.g>java -javaagent:C:/ABHIROOP/WORK/POC/appdynamics/appagent/javaagent.jar -version
Could not resolve Agent installation directory, please restart with system property appagent.install.dir
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

jvm.PNG

Thank YOu : Happy Coding !!!

I'm delighted you got things working!

 

The install.dir property should not be mandatory, so I will look in to why that seems to be needed in your case.

 

I hope you enjoy the rest of your evaluation experience!



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.