Using jstack on Windows
Here is the procedure to find out the Java stacktrace while running the application on windows. jstack requires processid. On MS Windows it is easy to find the process id for a program running. Just follow this steps to show processid in taskmanager.
- Start "TaskManager"
- From "View" menu select the menu "Select Columns"
- in "Select Columns" dialog check option "PID (Process Identifier)"
- Click on OK button.

Find the java process which you are intersted to see java stack.
Now from command line run this command jstack -l <PROCESS_ID>

You can also use "jps.exe" to show all java process running on the system. Thanks to A. Sundararajan.
Here is another tool from MicroSoft ProcessExplorer to find process id and process tree.
Posted by A. Sundararajan on June 18, 2007 at 08:56 PM PDT #
Where can I get the jstack for windows? I dont find it in jdk..
Posted by Basavaraj on December 12, 2008 at 06:19 AM PST #