zoukankan      html  css  js  c++  java
  • 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.
  • 相关阅读:
    剑指offer[19]——顺时针打印矩阵
    剑指offer[17]——树的子结构
    剑指offer[16]——合并两个排序的链表
    剑指offer[15]——反转链表
    剑指offer[14]——链表中倒数第k个结点
    剑指offer[13]——调整数组顺序使奇数位于偶数前面
    剑指offer[12]——数值的整数次方
    剑指offer[11]——二进制中1的个数
    剑指offer[10]——矩形覆盖
    linux的基本命令
  • 原文地址:https://www.cnblogs.com/shengulong/p/11553654.html
Copyright © 2011-2022 走看看