To get Java thread dumps for a Tomcat Web Server running on Windows Operating Systems, the next steps can be followed:
jps -l


NOTE: If the PID column doesn’t show, you can enable it by going to Options – Select Columns:

And select the PID (Process Identifier) column:

jstack -l PID > file.log