1
.\" Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
2
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
.\" This code is free software; you can redistribute it and/or modify it
5
.\" under the terms of the GNU General Public License version 2 only, as
6
.\" published by the Free Software Foundation.
8
.\" This code is distributed in the hope that it will be useful, but WITHOUT
9
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11
.\" version 2 for more details (a copy is included in the LICENSE file that
12
.\" accompanied this code).
14
.\" You should have received a copy of the GNU General Public License version
15
.\" 2 along with this work; if not, write to the Free Software Foundation,
16
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19
.\" or visit www.oracle.com if you need additional information or have any
22
.\" Automatically generated by Pandoc 2.19.2
24
.\" Define V font for inline verbatim, using C font in formats
25
.\" that render this, and otherwise B font.
26
.ie "\f[CB]x\f[R]"x" \{\
38
.TH "JSTACK" "1" "2025" "JDK 24-ea" "JDK Commands"
42
jstack - print Java stack traces of Java threads for a specified Java
46
\f[B]Note:\f[R] This command is experimental and unsupported.
48
\f[V]jstack\f[R] [\f[I]options\f[R]] \f[I]pid\f[R]
51
This represents the \f[V]jstack\f[R] command-line options.
52
See \f[B]Options for the jstack Command\f[R].
55
The process ID for which the stack trace is printed.
56
The process must be a Java process.
57
To get a list of Java processes running on a machine, use either the
58
\f[V]ps\f[R] command or, if the JVM processes are not running in a
59
separate docker instance, the \f[B]jps\f[R] command.
62
The \f[V]jstack\f[R] command prints Java stack traces of Java threads
63
for a specified Java process.
64
For each Java frame, the full class name, method name, byte code index
65
(BCI), and line number, when available, are printed.
66
C++ mangled names aren\[aq]t demangled.
67
To demangle C++ names, the output of this command can be piped to
69
When the specified process is running on a 64-bit JVM, you might need to
70
specify the \f[V]-J-d64\f[R] option, for example:
71
\f[V]jstack -J-d64\f[R] \f[I]pid\f[R].
75
This command is unsupported and might not be available in future
77
In Windows Systems where the \f[V]dbgeng.dll\f[R] file isn\[aq]t
78
present, the Debugging Tools for Windows must be installed so that these
80
The \f[V]PATH\f[R] environment variable needs to contain the location of
81
the \f[V]jvm.dll\f[R] that is used by the target process, or the
82
location from which the core dump file was produced.
83
.SH OPTIONS FOR THE JSTACK COMMAND
86
The long listing option prints additional information about locks.
88
\f[V]-h\f[R] or \f[V]-help\f[R]