Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to setup APM of Java Apps in AppDynamics?

Step 1 – Install Java

Step 2 – Install Tomcat

Step 3 – Run Apps in Tomcat

Step 4 – Download & Extract AppDynamics APM agent

Step 5 – Install the App Agent in Tomcat


$ vi /opt/apache-tomcat-9.0.63/bin/setenv.sh
	export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/opt/appagent/javaagent.jar"
$ chmod 755 /opt/apache-tomcat-9.0.63/bin/setup.sh

$ ps -eaf | grep tomcat | grep javaagent.jar
root     24952     1 56 01:27 pts/1    00:00:02 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-9.0.63/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -javaagent:/opt/appagent/javaagent.jar -Dignore.endorsed.dirs= -classpath /opt/apache-tomcat-9.0.63/bin/bootstrap.jar:/opt/apache-tomcat-9.0.63/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-9.0.63 -Dcatalina.home=/opt/apache-tomcat-9.0.63 -Djava.io.tmpdir=/opt/apache-tomcat-9.0.63/temp org.apache.catalina.startup.Bootstrap start

Step 6 – Install & Setup Jmeter

Step 7 – Create a Traffic at App using Jmeter & Visualize Data at AppDynmics

Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x