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 ?
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.
Thank you very much Asmit for Response.
Let me try as you suggested.
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 .... 😎