AppDynamics Application Intelligence Platform

3.8.x Documentation

PDFs

Videos

Release Notes

The AppDynamics Java App Server Agent bootstraps using the javaagent command line option. Add this option to the resin.sh or resin.bat file.

To Configure Resin 1.x - 3.x

To add the javaagent command in a Windows environment

1. Open the resin.bat file, located at <Resin_installation_directory>/bin.

2. Add following javaagent argument to the beginning of your application server start script.

exec JAVA_EXE -javaagent:"<drive>:\<agent_home>\javaagent.jar"

(warning) If you are a Self-Service Trial user, add the App Agent for Java javaagent argument to your JVM start script where <my-app-jvm1> is the name you use for the application running on that JVM.

-javaagent:"<drive>:\<agent_home>\javaagent.jar=uniqueID=<my-app-jvm1>"

The javaagent argument references the full path of the App Server Agent installation directory, including the drive. 

3. Restart the application server for changes to take effect.

To add the javaagent command in a Linux environment

1. Open the resin.sh file, located at <Resin_Installation_Directory>/bin.

2. Add the following javaagent argument to the beginning of your application server start script.

exec $JAVA_EXE -javaagent:"<agent_home>/javaagent.jar"

(warning) If you are a Self-Service Trial user, add the App Agent for Java javaagent argument to your JVM start script where <my-app-jvm1> is the name you use for the application running on that JVM.

-javaagent:<agent_home>/javaagent.jar=uniqueID=<my-app-jvm1>

The javaagent argument references the full path of the App Server Agent installation directory. See the following screenshot.

3. Restart the application server. The application server must be restarted for the changes to take effect.

To Configure Resin 4.x

1. To install the App Server Agent into Resin 4.X or later, edit the ./conf/resin.xml file and add:

<jvm-arg>-Xmx512m</jvm-arg>
<jvm-arg>-javaagent:<$appagent_location>/javaagent.jar</jvm-arg>

2. Restart the application server. The application server must be restarted for the changes to take effect.