Java Agent for Tomcat on Windows.

book

Article ID: 126065

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction



How can we add the APM JVM arguments to Tomcat when running Tomcat as a Windows Service?
 

Environment

All APM Tomcat Agent versions for Windows.

Resolution

1. Stop the Tomcat processes.
2. Open a command prompt and go to the tomcat\bin directory and run service.bat install.  For example:
    C:\apache-tomcat-9.0.14\bin\service.bat install

3. Once the service is installed, run the Tomcat Administrator by going to C:\apache-tomcat-9.0.14\bin and double clicking on tomcat9w.exe.  For other versions of Tomcat, i.e. 7, 8, the name of the file will be tomcat7w.exe, tomcat8w.exe respectively.

<Please see attached file for image>

User-added image

4. Click on the Java tab and uncheck "Use Default".

5. Enter, as above, the two lines.  Please note the above paths are example only.  
-javaagent:<Path_To_AgentJar> 
-DagentProfile=<Path_To_AgentProfile>

6. Click OK
7. Restart the Tomcat Service.  It should now connect to the Enterprise Manager.
 

Attachments

1558690555513000126065_sktwi1f5rjvs16gat.jpeg get_app