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

Reading and analyzing the thread dumps

Usually, during performance troubleshooting in enterprise applications, we take frequent thread dumps for analysis. If there is no useful information, we can perform complete thread monitoring (that is, profiling) as part of our application profiling.

The main reason we start with thread dumps is because obtaining thread dumps is easier and does not require any agent to be attached to the application server.

Understanding the thread dump structure

If we understand the thread dump structure well, we are able to make the best use of it. The following is the basic structure of the standard JVM thread dump:

  • A header line for each thread
  • Stack trace for each thread following the header
  • A blank line separating each thread ...

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