OS Manuals

/usr/lib/jvm/java-1.8-adoptium/bin/jstack

OpenJDK 8

From adoptium-openjdk-8 8.512.5-r3 (enterprise-packages), captured 2026-11-08 by running jstack --help (exit 1). permalink

Usage:
    jstack [-l] <pid>
        (to connect to running process)
    jstack -F [-m] [-l] <pid>
        (to connect to a hung process)
    jstack [-m] [-l] <executable> <core>
        (to connect to a core file)
    jstack [-m] [-l] [server_id@]<remote server IP or hostname>
        (to connect to a remote debug server)

Options:
    -F  to force a thread dump. Use when jstack <pid> does not respond (process is hung)
    -m  to print both java and native frames (mixed mode)
    -l  long listing. Prints additional information about locks
    -h or -help to print this help message
Options (5)
OptionDescriptionSource
-FForce a stack dump when jstack [-l] pid does not respond.help + man
-mPrints a mixed mode stack trace that has both Java and native C/C++ frames.help + man
-llong listing.help + man
-hPrints a help message. (in the manual page but not in --help)man
-helpPrints a help message. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.