Splunk AppDynamics

How to install java agent on Ubuntu machine

Kiran_K
New Member

Hi,

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)

-javaagent:<agent_home>/javaagent.jar 

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? 

Thanks,

Kiran

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

 
 
Labels (1)
0 Karma

Morelz
Motivator

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

e.g

telnet myappdtrial.saas.appdynamics.com 443

2. Agent Configuration

Have you set the following values according to your controller

controller-host

controller-port

controller-ssl-enabled

application-name

tier-name

node-name

account-name

access-key

3. Tomcat Configuration

in the Tomcat bin directory e.g

/apache-tomcat-7.0.105/bin

Open and edit the catalina.sh 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

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...