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 Mac OS X (Doc ID 1639014.1)

Last updated on DECEMBER 22, 2022

Applies to:

Java SE JDK and JRE - Version 7 to 8
Apple Mac OS X (Intel) (64-bit)

Goal

You want to obtain a Thread Dump, which is a Stack Trace for each thread, from a running Java process or a from a core file of a Java process on Mac OS X.

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)
 lldb
References

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