Generating a Java thread dump

Solution Verified - Updated

Environment

  • Java/JDK (Java Development Kit)

Issue

  • Create a thread dump of running application or server

Resolution

See also

A thread dump should be analyzed in combination with garbage collection logging, so be sure to also enable garbage collection logging and provide garbage collection logging from the time any thread dumps are taken.

Root Cause

Generating / Creating a thread dump varies per operating system.

Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.