Posts

Showing posts from May, 2011

JVM thread dump

Java options, which lets you direct thread dumps generated via “kill -3” to a file:

-XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=jvm.log

Pretty cool, but there’s one small catch: the thread dumps still get written to the JVM’s TTY as well as the file.