jstat介绍

命令可用选项

➜  ~ jstat -options
-class
-compiler
-gc
-gccapacity
-gccause
-gcmetacapacity
-gcnew
-gcnewcapacity
-gcold
-gcoldcapacity
-gcutil
-printcompilation

查看

➜  ~ jstat -gcutil 65007 500 7

S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT     GCT
0.00  81.25  59.60  89.21  93.54  87.75     97    0.369     4    0.257    0.626
0.00  81.25  64.72  89.21  93.54  87.75     97    0.369     4    0.257    0.626
0.00  81.25  64.94  89.21  93.54  87.75     97    0.369     4    0.257    0.626
0.00  81.25  66.43  89.21  93.54  87.75     97    0.369     4    0.257    0.626
0.00  81.25  66.65  89.21  93.54  87.75     97    0.369     4    0.257    0.626
0.00  81.25  68.67  89.21  93.54  87.75     97    0.369     4    0.257    0.626
0.00  81.25  69.26  89.21  93.54  87.75     97    0.369     4    0.257    0.626

帮助信息

➜   jstat  -help
Usage: jstat -help|-options
       jstat -<option> [-t] [-h<lines>] <vmid> [<interval> [<count>]]

Definitions:
  <option>      An option reported by the -options option
  <vmid>        Virtual Machine Identifier. A vmid takes the following form:
                     <lvmid>[@<hostname>[:<port>]]
                Where <lvmid> is the local vm identifier for the target
                Java virtual machine, typically a process id; <hostname> is
                the name of the host running the target Java virtual machine;
                and <port> 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.
  <lines>       Number of samples between header lines.
  <interval>    Sampling interval. The following forms are allowed:
                    <n>["ms"|"s"]
                Where <n> is an integer and the suffix specifies the units as
                milliseconds("ms") or seconds("s"). The default units are "ms".
  <count>       Number of samples to take before terminating.
  -J<flag>      Pass <flag> directly to the runtime system.
posted @ 2019-09-20 07:43  脚本小娃子  阅读(219)  评论(0编辑  收藏  举报