Skip to end of metadata
Go to start of metadata

The AppDynamics Java App Server Agent bootstraps using the javaagent command line option. Add this option to the cassandra (Linux) or cassandra.bat (Windows) file.

To add the javaagent command in a Windows environment

1. Open the apache-cassandra-x.x.x\bin\cassandra.bat file.

2. Add the AppDynamics javaagent to the JAVA_OPTS variable. Make sure to include the drive in the full path to the App Server agent directory.

-javaagent:<agent_home>\javaagent.jar

For example:

set JAVA_OPTS=-ea
    -javaagent:C:\appdynamics\agent\javaagent.jar
    -javaagent:"%CASSANDRA_HOME%\lib\jamm-0.2.5.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>

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

To add the javaagent command in a Linux environment

1. Open the apache-cassandra-x.x.x/bin/cassandra.in.sh file.

2. Add the javaagent argument at the top of the file:

JVM_OPTS=-javaagent:<agent_home>/javaagent.jar

For example:

JVM_OPTS=-javaagent:/home/software/appdynamics/agent/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>

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