How to enable the APM Java Agent with both NetOps SpectrumTomcat and SpectrumWebappTomcat Window services?
search cancel

How to enable the APM Java Agent with both NetOps SpectrumTomcat and SpectrumWebappTomcat Window services?

book

Article ID: 275653

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope) DX Application Performance Management

Issue/Introduction

What are the steps or procedure to enable the Java Agent with DX NetOps Spectrum Tomcat and Spectrum Webapp Tomcat window services?

Environment

Release : 22.1

Resolution

For "Spectrum Tomcat"

To enable the APM Java Agent add the  -javaagent:<AGENT-HOME>\wily\Agent.jar to <SPECTRUM-HOME>\bin\OneClickService.conf

 

For "SpectrumWebTomcat"

You can launch the GUI of SpectrumWebTomcat properties and add/modify anything as per your wish, follow the below steps:

1) From bash prompt, run $SPECROOT/webtomcat/bin>./tomcat9w.exe //ES//SpectrumWebTomcat

2) This will launch the GUI like this below:

3) Select Java tab and add required jvm parameters, change memory values etc…

For example: -javaagent:C:/win32app/Spectrum/webtomcat/wily/Agent.jar 

4) Click on Apply and OK and test your configurations.

Additional Information

In order to start Spectrum WebTomcat service in debug mode you can start the service from bash command prompt using this command:

webtomcat/bin>./tomcat9.exe //TS//SpectrumWebTomcat.

Make sure you use tomcat9.exe here not tomcat9w.exe.

It starts webtomcat service and prints all debug statements on the command prompt with very useful information required for any debugging etc..