$ jstack -help
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.(每个线程栈最后多出一条Locked ownable synchronizers:******信息,告知拥有的同步锁)
-h or -help to print this help message