How to instrument Spectrum Tomcat when running as a service
search cancel

How to instrument Spectrum Tomcat when running as a service

book

Article ID: 112267

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

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