How to instrument Spectrum Tomcat when running as a service

Document ID : KB000112267
Last Modified Date : 28/08/2018
Show Technical Document Details
Issue:
Following the Tech Doc https://comm.support.ca.com/kb/_how-to-instrument-spectrum-for-apm/KB000031123#/ we are not seeing the agent in APM The Tomcat is running as a service
Environment:
APM10.x Spectrum 9.X, 10.X Windows
Cause:
The instructions in KB000031123 describe how to instrument the Tomcat instance via the Catalina start up script - but when running the Tomcat instance as a service those scripts are not called.
Resolution:
Add the following JVM options to the Spectrum OneClickService.conf file (normally in C:\win32app\Spectrum\/tomcat\bin) substituting appropriate values for the agent installation location

jvm_opt=-javaagent:C:\wily\Agent.jar
jvm_opt=-Dcom.wily.introscope.agentProfile=C:\wily\core\config\IntroscopeAgent.profile