JSTACK(1)
π JSTACK(1) β the JDK Commands era
okay bestie, listen up, this one's a whole thing β it's jstack, and it lives in the JDK Commands corner of the manual. no cap, she's iconic but also a little experimental, so buckle up π
β¨ NAME β¨
jstack β print Java stack traces of Java threads for a specified Java process π«Ά
β¨ SYNOPSIS β¨
ngl, read this first: this command is experimental and unsupported. π
jstack [options] pid
optionsβ this represents thejstackcommand-line options. see Options for thejstackCommand below, bestie πpidβ the process ID for which the stack trace is printed. the process must be a Java process, no exceptions. to get a list of Java processes running on a machine, use either thepscommand or, if the JVM processes aren't running in a separate docker instance, thejpscommand. literally that's the whole vibe check π¦
β¨ DESCRIPTION β¨
so what does jstack actually do? she prints Java stack traces of Java threads for a specified Java process β main character energy fr fr π
for each Java frame, the full class name, method name, byte code index (BCI), and line number, when available, are printed. all of it, laid out for you β¨
here's the tea on C++ names though: C++ mangled names aren't demangled. π to demangle C++ names, the output of this command can be piped to c++filt. and when the specified process is running on a 64-bit JVM, you might need to specify the -J-d64 option, for example:
jstack -J-d64 pid
β οΈ note, and this one's important: this command is unsupported and might not be available in future releases of the JDK. π¬ in Windows Systems where thedbgeng.dllfile isn't present, the Debugging Tools for Windows must be installed so that these tools work. thePATHenvironment variable needs to contain the location of thejvm.dllthat is used by the target process, or the location from which the core dump file was produced. like, it needs to. no shortcuts π
πΈ OPTIONS FOR THE JSTACK COMMAND πΈ
okay so there's literally only two of these and they both slay in their own way π
-lβ the long listing option prints additional information about locks π₯ lowkey the useful one tbh-hor-helpβ prints a help message. classic, reliable, never misses π«Ά
and that's the whole page, bestie β you ate that π
JDK 27-ea, dated 2026, signing off β this has been your friendly neighborhood manual page, stay slay, stay jstack-ing β¨π
π¦ where this page comes from
- epel 10: java-latest-openjdk-devel 1:27.0.0.0.35-0.0.1.0.ea.el10_3 Β· Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising AND GPL-1.0-or-later AND GPL-2.0-only AND LicenseRef-Callaway-GPLv2-with-exceptions AND IJG AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-MIT AND MPL-2.0 AND LicenseRef-Callaway-Public-Domain AND W3C AND Zlib AND ISC AND FTL AND LicenseRef-RSA
- epel 10: java-latest-openjdk-devel-fastdebug 1:27.0.0.0.35-0.0.1.0.ea.el10_3 Β· Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising AND GPL-1.0-or-later AND GPL-2.0-only AND LicenseRef-Callaway-GPLv2-with-exceptions AND IJG AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-MIT AND MPL-2.0 AND LicenseRef-Callaway-Public-Domain AND W3C AND Zlib AND ISC AND FTL AND LicenseRef-RSA
- epel 10: java-latest-openjdk-devel-slowdebug 1:27.0.0.0.35-0.0.1.0.ea.el10_3 Β· Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising AND GPL-1.0-or-later AND GPL-2.0-only AND LicenseRef-Callaway-GPLv2-with-exceptions AND IJG AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-MIT AND MPL-2.0 AND LicenseRef-Callaway-Public-Domain AND W3C AND Zlib AND ISC AND FTL AND LicenseRef-RSA
- epel 9: java-latest-openjdk-devel 1:27.0.0.0.35-0.0.1.0.ea.el9 Β· Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising AND GPL-1.0-or-later AND GPL-2.0-only AND LicenseRef-Callaway-GPLv2-with-exceptions AND IJG AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-MIT AND MPL-2.0 AND LicenseRef-Callaway-Public-Domain AND W3C AND Zlib AND ISC AND FTL AND LicenseRef-RSA
- epel 9: java-latest-openjdk-devel-fastdebug 1:27.0.0.0.35-0.0.1.0.ea.el9 Β· Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising AND GPL-1.0-or-later AND GPL-2.0-only AND LicenseRef-Callaway-GPLv2-with-exceptions AND IJG AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-MIT AND MPL-2.0 AND LicenseRef-Callaway-Public-Domain AND W3C AND Zlib AND ISC AND FTL AND LicenseRef-RSA
- epel 9: java-latest-openjdk-devel-slowdebug 1:27.0.0.0.35-0.0.1.0.ea.el9 Β· Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising AND GPL-1.0-or-later AND GPL-2.0-only AND LicenseRef-Callaway-GPLv2-with-exceptions AND IJG AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-MIT AND MPL-2.0 AND LicenseRef-Callaway-Public-Domain AND W3C AND Zlib AND ISC AND FTL AND LicenseRef-RSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms