Java - Jstack

Java Conceptuel Diagram


The jstack utility can be used to obtain the stack thread.


    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)

    -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

Documentation / Reference

Discover More
Java Conceptuel Diagram
Java - Hang Troobleshooting

procedures for troubleshooting hanging or looping processes. deadlock in application code, API code, or library code. bug in the HotSpot virtual machine. An initial step when diagnosing...
Java Conceptuel Diagram
Java - Thread Stack (Stack Trace)

thread stack (ie stack trace) Jstack A core dump has also the stack trace The -m option of Jstack can be used to print the native frames
Java Conceptuel Diagram
Java Concurrency - Thread Dump

A thread dump consists of: an thread header (followed by the thread stack) the thread stack, including thread state, for all Java threads in the virtual machine. The thread dump does not terminate...

Share this page:
Follow us:
Task Runner