Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1.15 KB

readme.md

File metadata and controls

55 lines (46 loc) · 1.15 KB

Java thread dump analyzer

Helps analyzing a thread dump quickly

Some features

  • listing thread ids
  • unique thread states
  • threads matching a state
  • thread matching id
  • threads having large stack trace
  • threads having same stack trace
  • framework to support additional versions/formats of thread dump
  • support for custom annotators to provide information on the thread dump

Constraints

  • supports thread dumps compatible with only Oracle java 1.7_21 for the moment

Technologies

  • Ruby, gem, bundle, rake, minispec

Installation

  • Clone the git repo locally
  • bundle install
  • Build the gem, 'gem build jta.gemspec'
  • Install the built gem, 'gem install jtda-.gem'
  • Run the program, 'jtda.rb --help'

Usage

  • help
$ jta.rb --help
  • list unique states
$ jta.rb -f /tmp/thread.dump -u
  • list threads by id
$ jta.rb -f /tmp/thread.dump -t 100,200
  • groups thread by unique thread stack
$ jta.rb -f /tmp/thread.dump -a
  • run application locally (not from the gem)
$ ruby -Ilib bin/jta.rb -f /tmp/thread.dump -l

Running tests

  • rake test

License

MIT