Thursday, April 11, 2013

Thread Dump Analyzer


I have installed a plugin for VisualVM to analyse Thread Dumps:

http://java.net/projects/tda/downloads/directory/visualvm
download the 3 plugins (all 3 are necessary)

it says:

https://tda.dev.java.net
Version: 2.2 Author: Ingo Rockel   Date: 8/9/10 Source: net-java-dev-tda-visualvm.nbm Homepage: https://tda.dev.java.net 
Plugin Description
VisualVM Module of TDA - Thread Dump Analyzer

To install the plugin
open C:\Oracle\Middleware\jdk160_24\bin\jvisualvm.exe
tools /plugins/downloaded/add plugin/install

"they are not signed" warning.... continue


Be aware that thread dump files must have extension .tdump (like: bla.tdump)

go to file/open/bla.tdump

the trick is to look for "waiting threads", click on the STUCK thread









The tool makes it very easy to navigate from thread to thread based on the monitor id, so as to identify the root cause of a stuck thread.






No comments: