Usage:jstack [-l][-e] (to connect to running process)Options:-l long listing[该操作会打印锁相关信息]. Prints additional information about locks-e extended listing. Prints additional information about threads
An option reported by the -options option Virtual Machine Identifier. A vmid takes the following form:[@[:]]Where is the local vm identifier for the targetJava virtual machine, typically a process id; isthe name of the host running the target Java virtual machine;and is the port number for the rmiregistry on thetarget host. See the jvmstat documentation for a more completedescription 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 asmilliseconds("ms") or seconds("s"). The default units are "ms". Number of samples to take before terminating.-J Pass directly to the runtime system.-? -h --help Prints this help message.-help Prints this help message.options
-class
-compiler
-gc
-gccapacity
-gccause
-gcmetacapacity
-gcnew
-gcnewcapacity
-gcold
-gcoldcapacity
-gcutil
-printcompilation