What are the steps or procedure to enable the Java Agent with DX NetOps Spectrum Tomcat and Spectrum Webapp Tomcat window services?
Release : 22.1
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.
4) Click on Apply and OK and test your configurations.
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..