How do I analyze a Java thread dump or javacore?
Environment
- OpenJDK
- Oracle (Sun) JDK
- IBM JDK
Issue
- How do I analyze a Java thread dump?
- How do I analyze a javacore?
- Is there any good Java thread dump browser?
Resolution
For OpenJDK or Oracle JDK thread dumps:
- Content from github.com is not included.ThreadLogic
- Content from github.com is not included.Thread Dump Analyzer (TDA)
- Content from github.com is not included.Samurai
For IBM javacore files:
For JBoss/Tomcat thread dumps, Content from github.com is not included.Yatda can provide informative thread dump summaries focusing on threads from the server's request thread pool or boot thread pool.
Most profilers have a feature to generate and browse thread dumps in runtime. For example:
- JConsole - Content from openjdk.java.net is not included.Content from openjdk.java.net is not included.http://openjdk.java.net/tools/svc/jconsole/
- VisualVM - Content from visualvm.github.io is not included.Content from visualvm.github.io is not included.https://visualvm.github.io/
- GlowRoot - Content from github.com is not included.Content from github.com is not included.https://github.com/glowroot/glowroot
- YourKit - Content from www.yourkit.com is not included.Content from www.yourkit.com is not included.http://www.yourkit.com/
- JProfiler - Content from www.ej-technologies.com is not included.Content from www.ej-technologies.com is not included.http://www.ej-technologies.com/products/jprofiler/overview.html
Typically garbage collection logging is enabled and analyzed for the same time period as the thread dumps because garbage collection and threading are directly related. See How do I enable Java garbage collection logging? and How do I analyze Java garbage collection logging?.
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.