Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Java (Java Agent, Installation, JVM, and Controller Installation)

How to install java agent on Ubuntu machine


How to install java agent on Ubuntu machine


I am new to AppDynamics and I am using 15 days trial version SAAS. 

I am trying to install a java agent on the Ubuntu machine. I have downloaded the java configuration file from the wizard.


I configured the controller-info.xml file accordingly. But, to load the java agent in JVM, could you please guide where I need to add the below one? (location)




Also, I am using tomcat7, could you please guild where should I add these arguments.  

export CATALINA_OPTS="$CATALINA_OPTS -javaagent:<agent_home>/javaagent.jar"


Once these two are configured, automatically the agents gets connected to the controller? 





^ Posted edited by @Ryan.Paredez to improve the title of the post. 



By replying you agree to the Terms and Conditions of the AppDynamics Community.
How to install java agent on Ubuntu machine

Hi Kiran


Lets go through the steps


Firstly ensure that the user that you are starting the tomcat process as, has permissions to read/write to the AppDynamics Agent directory:) Otherwise allow access.


1. Connectivity

Have you confirmed that you can access the Trial AppDynamics instance from the sevrer where you are running your tomcat instance?


You can use telnet command to verify that you can connect to the SaaS hostname


telnet 443


2. Agent Configuration


Have you set the following values according to your controller










3. Tomcat Configuration

in the Tomcat bin directory e.g



Open and edit the file

Add this line into the top of the file, with the <agent_home> variable to be changed to where you unzipped your Appdynamics Java agent

export CATALINA_OPTS="$CATALINA_OPTS -javaagent:<agent_home>/javaagent.jar"


Then just stop and start the Tomcat service and AppDynamics should be instrumented



4. Validation

run a command e.g

ps aux | grep tomcat


Check if you can see the AppDynamics startup arguments are part of the Tomcat process


Check the AppDynamics logs directory, if it started with the Tomcat process, it should have created a folder with the "node name" you gave in the logs directory


Then validate that you can see the application in AppDynamics


Learn more about me in the Community Member Spotlight Q & A