www.LinuxHowtos.org





JSTACK

Section: JDK Commands (1)
Updated: 2023
Index Return to Main Contents
 

NAME

jstack- print Java stack traces of Java threads for a specified Java process  

SYNOPSIS

B]Note:R] This command is experimental and unsupported.

V]jstackR] [I]optionsR]] I]pidR]

I]optionsR]
This represents the V]jstackR] comman-line options. See B]Options for the jstack CommandR].
I]pidR]
The process ID for which the stack trace is printed. The process must be a Java process. To get a list of Java processes running on a machine, use either the V]psR] command or, if the JVM processes are not running in a separate docker instance, the B]jpsR] command.
 

DESCRIPTION

The V]jstackR] command prints Java stack traces of Java threads for a specified Java process. For each Java frame, the full class name, method name, byte code index (BCI), and line number, when available, are printed. C++ mangled names aren[aq]t demangled. To demangle C++ names, the output of this command can be piped to V]c++filtR]. When the specified process is running on a 6-bit JVM, you might need to specify the V--d64R] option, for example: V]jstack--d64R] I]pidR].

B]Note:R]

This command is unsupported and might not be available in future releases of the JDK. In Windows Systems where the V]dbgeng.dllR] file isn[aq]t present, the Debugging Tools for Windows must be installed so that these tools work. The V]PATHR] environment variable needs to contain the location of the V]jvm.dllR] that is used by the target process, or the location from which the core dump file was produced.  

OPTIONS FOR THE JSTACK COMMAND

V-lR]
The long listing option prints additional information about locks.
V-hR] or V-helpR]
Prints a help message.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS FOR THE JSTACK COMMAND