Tapestry Training -- From The Source

Let me help you get your team up to speed in Tapestry ... fast. Visit howardlewisship.com for details on training, mentoring and support!

Sunday, September 07, 2008

Java's jconsole to the rescue

If you find yourself doing something tricky with threads, such as rooting out some insidious thread deadlocks, jconsole is invaluable. Having it analyze the threads to get the deadlocks is awesome, and the stack trace even includes identifiers about what object monitors have been locked. Way better than sorting through all that, by hand, from a text stack dump.


Dion Almaer said...

I saw "jsconsole" instead of jconsole and got all excited :)

Unknown said...

Ooops. Fixed.

SteveL said...

kill -QUIT is there for this purpose too, and works over SSH. There is a patch for Hadoop that will run this automatically when a forked process is killed, so that you get a stack trace of where the app was when it died.