Instrument Tomcat When Running as a Windows Service
When running Tomcat as a Windows service, add the javaagent
argument to
your Tomcat startup properties. These instructions apply to Apache Tomcat >= 6.x.
To install the Java agent in Tomcat running as a Windows service: