开源免费的JVM TD日志分析工具, 支持JConsole和VisualVM插件.

主页: https://tda.dev.java.net/

最新版(2.2): http://java.net/projects/tda/downloads/download/tda-bin-2.2.zip

最新版文档: http://java.net/projects/tda/downloads/download/tda-2.2.pdf

作者blog: http://www.jroller.com/dumpster/

Win下按下 Ctrl+Break键, Linux下键入 kill -3 PID, 即可输出thread dump到控制台输出文件中. 其它办法可参考: WLST脚本获取ThreadDump[转]  使用VisualVM远程监控WebLogic服务器JVM

随后用此工具打开即可.
下载得到的是一个ZIP文件, 解压缩后运行 bin/tda.bat 或者 tda.sh 即可, 打开 server 的输出重定向文件即可看到分析结果.

实际运行演示视频参考文末.

The TDA Thread Dump Analyzer for Java is a small Swing GUI for analyzing Thread Dumps and Heap Information generated by the Sun Java VM (currently tested with 1.4.x, 1.5.0_x and 1.6.0_x releases). It parses the thread dumps and class histograms from a provided log file. TDA needs at least Java 1.4.2_x to run.
It provides statistic informations about the found thread dumps, gives information about locked monitors and waiting threads. It can diff between threads to look for similarities and has a “long-running-thread” detection. It also provides overview of heap objects at a thread dump, if class histogram was logged.
Features are in detail:

  • Parsing all thread dumps of a log file, using a specified regular expression for log file time stamps (thread dumps don’t have any date information by default), displaying them in a tree.
  • Display of statistic data about the found thread dumps, display of monitors, waiting, sleeping and locking threads,
  • dumps provide links in context for easy dump navigation,
  • integrated class histogram analysis for a specific thread dump (using the -XX:+PrintClassHistogram option of the VM), can also be parsed from a second file, if loggc-Option was used (to log garbage collections to a different log file).
  • displays deadlock information from the thread dump,
  • displays hints about possible problems in the analyzed dumps and
  • ability to add additional logfiles (useful if logfiles are rotated) or open many at once.
  • Session handling to be able to reopen a tda session.
  • Integration into JConsole as plugin.
  • A VisualVM plugin.

Features planned:

  • BEA JDK Parser Support (JRockit).
  • java-Concurrent-Packge support (parsing of locks of this package).
  • Provide netbeans or eclipse integration if possible.

The emphasis of the TDA is to provide analysis support of offline information gathered from production environments.
In addition to TDA you might find the GCViewer helpful. It parses the output of the garbage collector from a loggc file and displays it graphically, so you can analyse the memory usage over the time.
TDA includes a help overview giving detailed information on how to use the tool.

官网截图:

 

相关演示视频:

http://www.beansoft.biz/wp-content/uploads/2011/08/tda.swf

转载请注明:WebLogic Android 博客 » 开源Thread Dump分析工具TDA下载[图文视频]