Instrument Jetty Version 8.x or 9.x
You can instrument Jetty with the Splunk AppDynamics agent either from the server startup command, or by editing the Jetty startup configuration file.
-
To add the agent to Jetty at the command line, pass the
javaagentargument with the fully qualified location of the Java agent JAR file when starting the Jetty server. For example:java -javaagent:/<agent_home>/javaagent.jar -jar start.jar -
To use the startup configuration file, edit the
start.inifile in the Jetty base directory by adding these lines:--exec -javaagent:/<agent_home>/javaagent.jar
Be sure to specify the location of the Splunk AppDynamics javaagent.jar file in the javaagent argument as appropriate for your system. Restart the Jetty server after modifying the configuration file to have your changes take effect.