My Oracle Support Banner

How to Obtain a Thread Dump (Stack Traces) from a Java Process or from a Core File of a Java Process on Linux (Doc ID 1282871.1)

Last updated on OCTOBER 11, 2018

Applies to:

Java SE JDK and JRE - Version 1.3.1 and later
Generic Linux

Goal

You want to obtain a Thread Dump (a Stack Trace for each thread) from a running Java process or a from a core file of a Java process on Linux.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Overview
 Details
 jstack
 jcmd
 
 kill -QUIT
kill -3
 Ctrl+\
 JConsole
 Java VisualVM (jvisualvm)
 gdb
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.