用法:
jstack [-l]
(连接到正在运行的进程)
jstack -F [-m] [-l]
(连接到挂起的进程)
jstack [-m] [-l] <可执行文件> <核心>
(连接到核心文件)
jstack [-m] [-l] [server_id@]<远程服务器 IP 或主机名>
(连接到远程调试服务器)
选项:
-F 强制线程转储。 当 jstack 没有响应(进程挂起)时使用
-m 打印 java 和 native 帧(混合模式)
-l 长列表。 打印关于锁的附加信息
-h 或 -help 打印此帮助信息
#英文原注
Usage:
jstack [-l]
(to connect to running process)
jstack -F [-m] [-l]
(to connect to a hung process)
jstack [-m] [-l]
(to connect to a core file)
jstack [-m] [-l] [server_id@]
(to connect to a remote debug server)
Options:
-F to force a thread dump. Use when jstack 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
An option reported by the -options option
Virtual Machine Identifier. A vmid takes the following form:
[@[:]]
Where is the local vm identifier for the target
Java virtual machine, typically a process id; is
the name of the host running the target Java virtual machine;
and is the port number for the rmiregistry on the
target host. See the jvmstat documentation for a more complete
description of the Virtual Machine Identifier.
Number of samples between header lines.
Sampling interval. The following forms are allowed:
["ms"|"s"]
Where is an integer and the suffix specifies the units as
milliseconds("ms") or seconds("s"). The default units are "ms".
Number of samples to take before terminating.
-J Pass directly to the runtime system.