Instrument Jetty Version 6.x or 7.x

For Jetty version 6.x or 7.x, you can add the javaagent command line option to your jetty.sh file:

  1. Open the jetty.sh start script file.
  2. Add the following javaagentargument to the beginning of the script:
    java -javaagent:/<agent_home>/javaagent.jar
  3. Save the script file.
  4. Restart the application server for the changes to take effect.