Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rewrite section on using Thread Dump command in Windows service monitoring application.

...

If you are running Tomcat as a service on Microsoft Windows

Edit your service to add the "//MS//" option to the command line. This enabled the "Monitor Service" which Tomcat service has a monitoring application with it. When it is running it puts an icon in the Windows system tray while Tomcat is runningarea. Right-clicking the Tomcat monitor in the system tray allows you to produce a thread dump in stdoutclick the icon, a menu will appear. Select "Thread Dump" command from the menu. It will cause thread dump to be printed to stdout. The service captures stdout into a log file (logs/tomcatNN-stdout.DATE.log).

If the monitoring application is not running, you can start it manually. The command is

Tomcat8w.exe //MS//

or

Tomcat8w.exe //MS//servicename

If you installed Tomcat with an "exe" installer, "Apache Tomcat version servicename" group in the Windows menu has shortcut "Monitor Tomcat" that starts the monitoring application.

For details, see Windows service page in Tomcat documentation.

If you have Tomcat running in a console

...