This page applies to an earlier version of the AppDynamics App IQ Platform.
For the latest documentation, see the 4.5 Documentation.

Skip to end of metadata
Go to start of metadata

Some restricted environments do not allow any changes to the JVM startup script. For these environments AppDynamics provides the appdynamics.agent.startup.hook property. This "startup hook" allows a single point of deployment for the agent. You create a Java main method that is invoked programmatically, before your startup script is executed.

To create the "startup hook" Agent Program
  1. Implement a class with Java main method.
  2. Create a JAR file for this class.
  3. In the manifest of the JAR file, specify the class created in step 1.
  4. Add the following javaagent argument and system properties (-D options) to your startup script:

    -javaagent:<agent_home>/javaagent.jar -Dappdynamics.agent.startup.hook=<JAR-file>