zoukankan      html  css  js  c++  java
  • JVM统计

    1.进程pid

    jps
    C:Usersyuekun02>jps
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    26944 ManagerWebApplication
    14228 Launcher
    9316 Jps
    25404 RemoteMavenServer
    26876
    View Code

    2.类加载统计

    jstat -class pid
    C:Usersyuekun02>jstat -class 26944
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    Loaded  Bytes  Unloaded  Bytes     Time
     10696 20240.3        0     0.0      10.11
    
    
    loaded: 加载class数量
    Bytes:  加载class占用空间大小
    Unloaded: 未加载class数量
    Bytes:       未加载class占用空间大小 
    Time: 时间
    View Code

    3.编译统计

    jstat -compiler pid
    C:Usersyuekun02>jstat -compiler 26944
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    Compiled Failed Invalid   Time   FailedType FailedMethod
        8164      7       0     3.87          1 com/fasterxml/classmate/ResolvedTypeWithMembers resolveMemberMethods
    
    Compiled: 编译数量
    Failed: 失败数量
    Invalid: 不可用数量
    Time: 时间
    FailedType: 失败类型
    FailedMethod: 失败方法
    View Code

    4.gc统计

    jstat -compiler pid
    C:Usersyuekun02>jstat -gc 26944
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
     S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT     GCT
     0.0   51200.0  0.0   51200.0 316416.0 74752.0   680960.0     0.0     60464.0 58817.1 7808.0 7181.1      6    0.210   0      0.000    0.210
    
    
    
    
    S0C: 第一个Survivor区分配大小(KB)
    S1C: 第二个Survivor区分配大小(KB)
    S0U: 第一个Survivor区使用大小(KB)
    S1U: 第二个Survivor区使用大小(KB)
    
    EC: Eden区分配大小(KB)
    EU: Eden区使用大小(KB)
    
    OC: Old区分配大小(KB)
    OU: Old区使用大小(KB)
    
    MC: 方法区分配大小(KB)
    MU: 方法区使用大小(KB)
    
    CCSC: 压缩类空间分配大小(KB)
    CCSU: 压缩类空间使用大小(KB)
    
    YGC: 年轻代垃圾回收次数
    YGCT:年轻代垃圾回收消耗时间
    
    FGC: 老年代垃圾回收次数
    FGCT:老年代垃圾回收消耗时间
    GCT: 垃圾回收消耗总时间
    View Code
  • 相关阅读:
    C++ 反调试(NtSetInformationThread)
    Bochs使用简单教程
    巧解正则表达式环视
    RE4B读书笔记之寄存器
    Bochs+Windbg调试VT代码
    键盘键值对照
    移动端调试神器vConsole,eruda
    利用易乐游在家搭建无盘系统
    三:大数据架构回顾-数仓架构演进
    二:大数据架构回顾-Kappa架构
  • 原文地址:https://www.cnblogs.com/smileblogs/p/12806839.html
Copyright © 2011-2022 走看看