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.
  • 相关阅读:
    java多线程2-总结
    java多线程1-生产者与消费者
    jedis中的两组方法
    理解socket的阻塞
    java设计模式5-命令模式
    我的BIOS
    java设计模式4-装饰者模式
    java设计模式3-单例模式
    android四大组件
    android:theme
  • 原文地址:https://www.cnblogs.com/shengulong/p/11553654.html
Copyright © 2011-2022 走看看