AppDynamics Application Intelligence Platform

3.9.x Documentation

PDFs

Learn by Watching

Doc Maps

Skip to end of metadata
Go to start of metadata

The Java 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 Java Agent 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 Java 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 Java Agent 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 Java 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 Java 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.