Splunk AppDynamics

Where to provide the proxy details in java agent

vishutanuku
Engager

Hi Team.

I am installing the Java agent in Tomcat server I have a proxy in between the server to AppDynamics SaaS .

help me where i can add the proxy details.

is it in controller.xml or any other location ?

 

 

 

Labels (1)
0 Karma

vishu_tanuku
New Member

Hi Asmit,

I have machine agent and Application agent both are running in same linux server ,how can i add the apm correlation link to dashboard. where to add the arguments please suggest.

0 Karma

vishutanuku
Engager

Thank you very much Asmit for Response.

Let me try as you suggested.

 

0 Karma

asimit
Path Finder

Hi @vishutanuku,

For AppDynamics Java agent with Tomcat, you have multiple options to configure proxy settings:

OPTION 1: JVM ARGUMENTS
-----------------------
You can add the proxy settings as JVM arguments in your Tomcat startup script (catalina.sh/catalina.bat or setenv.sh/setenv.bat):


JAVA_OPTS="$JAVA_OPTS -Dappdynamics.http.proxyHost=your_proxy_host -Dappdynamics.http.proxyPort=your_proxy_port"

If your proxy requires authentication, also add:

JAVA_OPTS="$JAVA_OPTS -Dappdynamics.http.proxyUser=your_proxy_username -Dappdynamics.http.proxyPasswordFile=/path/to/password/file"

OPTION 2: CONTROLLER-INFO.XML
----------------------------
Yes, you can add proxy settings directly in the controller-info.xml file, which is located in the agent's conf directory:

xml
<controller-info>
<!-- Other controller settings -->
<http-proxy-host>your_proxy_host</http-proxy-host>
<http-proxy-port>your_proxy_port</http-proxy-port>
<http-proxy-username>your_proxy_username</http-proxy-username>
<http-proxy-password-file>/path/to/password/file</http-proxy-password-file>
</controller-info>

OPTION 3: SYSTEM PROPERTIES
--------------------------
You can also set system-wide proxy settings using standard Java system properties:JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyHost=your_proxy_host -Dhttp.proxyPort=your_proxy_port -Dhttp.nonProxyHosts=localhost|127.0.0.1"

BEST PRACTICES
-------------
1. For security, store proxy passwords in a separate file and use the password file reference
2. Make sure the agent has read permissions for the password file
3. Restart Tomcat after making these changes
4. Check agent logs for any proxy-related connection issues
5. If using HTTPS for the controller, you may also need HTTPS proxy settings

To verify if your proxy settings are working, check the agent logs for successful connection messages to the controller after restart.

These configurations work for both AppDynamics Java agent versions 4.x and 21.x+.

Please give 👍 for support 😁 happly splunking .... 😎

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 ...