Skip to Content

SUP: Thread Dump, How-to

I recently had to create a series of Thread Dumps with SUP.

Here are the steps to get a thread dump from a running SUP mlsrv12 process:

  1. Download PsTools package including PsExec from Microsoft:
  2. Extract the PsExec to some folder, like C:\temp Go to Task manager and find out the PID of the MLSRV12
    process. If the column is not seen, goto View – Select Columns – Choose
  3. Alternatively, use the PSLIST tool to search for process id (Pid):
  4. C:\>pslist mlsrv12
  5. Open CMD prompt in the Administrators mode: right-click on “Command Prompt” and select Run As Administrator
  6. In this command prompt navigate to the folder where you extracted PsExec to and execute psexec -s
    C:\Sybase\UnwiredPlatform\JDK1.6.0_26-x64\bin\jstack PID >> C:\threaddump.log

    If SUP runs in 32-bit mode, use the corresponding jstack from the 32-bit JDK:
    psexec -s
    C:\Sybase\UnwiredPlatform\JDK1.6.0_26\bin\jstack PID >>

  7. Repeat the step above in interval every 10 to 30 seconds to get multiple thread dumps. This helps to understand which classes were executed in threads or were maybe hanging on some blocked objects:
  8. Here’re some Links about how to analyze Thread dumps:

  10. With the below mentioned tools you can automate your analysis:
         and it’s screenshot:

Have Fun!


Be the first to leave a comment
You must be Logged on to comment or reply to a post.