O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dealing with thread dumps

A thread dump is a snapshot of the current executing threads with their stack trace. It gives us an overview of the current threads being executed, and by taking subsequent snapshots, we get an idea about the different activities that consume these threads.

There are many ways to get thread dumps, including the use of an application server admin console, command lines, different tools, and MBeans.

Regardless of how we obtain thread dumps, reading them is almost the same even with some differences between each of the JVM implementations. Let's try to explore the different available options to get a thread dump and then describe its content.

Taking a thread dump using the operating system commands

We can use some options from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required