Skip to content

raghavan20/java-threaddump-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

allows quick analysis of java thread dumps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published