Every once in a while I run into a situation where the usual means for generating a thread dump does not work, making it difficult to track down pesky deadlocks. Rather than actually figuring out why that happens, here are some notes on using jdb to generate a stack trace: JDB Example: Generating a Thread Dump.