Standalone JVM Startup Settings

Splunk AppDynamics works with applications running outside of an application server or container.

To install the agent on a standalone JVM, pass the path to the Java Agent when running the Java application in the following form:

CODE
java -javaagent:"/<agent_home>/javaagent.jar" <classname>

Ensure to add the -javaagent argument before the -jar argument. The javaagent argument value must reference the full path to the Java Agent home directory, including the drive on Windows. The classname should be the fully qualified class name with main method.

This an example of the command on a Windows system:

CODE
java -javaagent:"C:\AppDynamics\agentDir\javaagent.jar"  com.main.HelloWorld

On Linux, it would be:

CODE
java -javaagent:"/mnt/AppDynamics/agentDir/javaagent.jar" com.main.HelloWorld