zoukankan      html  css  js  c++  java
  • JVM工具jstat使用说明

    输入: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.
      -? -h --help  Prints this help message.
      -help         Prints this help message.

    option:操作(见下面的option说明)

    vmid:进程pid

    lines:

    interval:输出时间间隔,单位ms和s

    count:输出条目行数

    输入:jstat -option得到以下选项

    -class             // 显示类加载信息
    -compiler          // 显示编译信息
    -gc                // 显示GC相关信息
    -gccapacity        // 显示各区域容量及使用情况
    -gccause           // 显示垃圾回收信息
    -gcmetacapacity    // 显示元空间容量信息
    -gcnew             // 显示新生代信息
    -gcnewcapacity     // 显示新生代容量信息
    -gcold             // 显示老年代信息
    -gcoldcapacity     // 显示老年代容量信息
    -gcutil            // 显示垃圾收集信息
    -printcompilation  // 显示JIT编译的方法信息

    命令实际使用

    jstat -gcutil 20272 2s 3

    统计列含义

    S0C:第一个幸存者区(Survivor Space)容量

    S1C:第二个幸存者区(Survivor Space)容量

    S0U:第二个幸存者区使用量

    S1U:第二个幸存者区使用量

    EC:伊甸园去容量

    EU:伊甸园区使用量

    OC:Old Generation区容量

    OU:Old Generation使用量

    MC:Mataspace区容量

    MU:Mataspace区实际使用量

    CCSC:压缩类空间大小(不是很懂,先标记一下)

    CCSU:压缩类空间使用率(不是很懂,先标记一下)

    YGC:年轻代垃圾回收次数

    YGCT:年轻代垃圾回收时间

    FGC:年老代垃圾回收次数

    FGCT:年老代垃圾回收时间

    GCT:总垃圾回收时间

    S0:S0C区域使用率

    S0:S1C区域使用率

    E:伊甸园去使用率

    O:Old Generation使用率,OU/OC

    M:Matespace区使用率,MU/MC

    CCS:压缩类空间使用率

  • 相关阅读:
    【python小随笔】单例模式设计(易懂版)
    【python小随笔】函数的初始化与私有化
    【python小随笔】List列表的常见函数与切片
    【itsdangerous】的加密解密原理(易懂版)
    【Django入坑之路】Django后台上传图片,以及前端的显示
    【插拔式】分页+bootstrap4(开源)
    luogu P1231 教辅的组成 |网络流最大匹配
    luogu P3376 【模板】网络最大流 |Dinic
    luogu P4177 [CEOI2008]order |最大权闭合子图
    luogu P4562 [JXOI2018]游戏 |组合数学
  • 原文地址:https://www.cnblogs.com/zhi-leaf/p/10629776.html
Copyright © 2011-2022 走看看