Java - Jstack

> Procedural Languages > Java

1 - About

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

Advertising

3 - Usage

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] [[email protected]]<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

4 - Documentation / Reference

lang/java/jstack.txt · Last modified: 2018/09/16 18:41 by gerardnico