Collecting a JRockit Thread Dump
The easiest way to get a thread dump is to use the jrcmd command, which was discussed earlier in this chapter. Another important technique would be to trigger a diagnostic image dump or thread dump using the WLDF watches and notifications. One can easily write a watch that is triggered when a thread gets “stuck” and automatically trigger a diagnostic image dump that will include the stack trace and generate an e-mail to the administrator. Tracking hogging threads is also a very useful thing to configure. It is easy to add a watch that will track the hogging thread count and generate an image dump when it exceeds a certain count.
You can also generate a JRockit JVM thread dump with any one of the following methods: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access