zoukankan      html  css  js  c++  java
  • gc 辅助打印信息

    cat xx.xml|grep GC
    <jvm-arg>-XX:+PrintGCDetails</jvm-arg>
    <jvm-arg>-XX:+PrintGCDateStamps</jvm-arg>
    <jvm-arg>-XX:+PrintGCApplicationConcurrentTime</jvm-arg>
    <jvm-arg>-XX:+PrintGCApplicationStoppedTime</jvm-arg>

    辅助信息
    JVM提供了大量命令行参数,打印信息,供调试使用.主要有以下一些:
    -XX:+PrintGC
    输出形式:[GC 118250K->113543K(130112K), 0.0094143 secs]
    [Full GC 121376K->10414K(130112K), 0.0650971 secs]

    -XX:+PrintGCDetails
    输出形式:[GC [DefNew: 8614K->781K(9088K), 0.0123035 secs] 118250K->113543K(130112K), 0.0124633 secs]
    [GC [DefNew: 8614K->8614K(9088K), 0.0000665 secs][Tenured: 112761K->10414K(121024K), 0.0433488 secs] 121376K->10414K(130112K), 0.0436268 secs]

    -XX:+PrintGCTimeStamps -XX:+PrintGC:PrintGCTimeStamps可与上面两个混合使用
    输出形式:11.851: [GC 98328K->93620K(130112K), 0.0082960 secs]

    -XX:+PrintGCApplicationConcurrentTime:打印每次垃圾回收前,程序未中断的执行时间.可与上面混合使用
    输出形式:Application time: 0.5291524 seconds

    -XX:+PrintGCApplicationStoppedTime:打印垃圾回收期间程序暂停的时间.可与上面混合使用
    输出形式:Total time for which application threads were stopped: 0.0468229 seconds

    XX:+PrintTenuringDistribution 查看每次minor GC后新的存活周期的阈值  

    Desired survivor size 1048576 bytes, new threshold 7 (max 15)
    new threshold 7即标识新的存活周期的阈值为7。

    http://www.cnblogs.com/redcreen/archive/2011/05/04/2037057.html

    --希望是生命的瑰丽朝霞,我们应当在希望中生活,并在希望中奋进,去开拓我们的人生之路。
  • 相关阅读:
    P1119 灾后重建
    P1453 城市环路
    21.10.28模拟 C
    21.10.28模拟 String Coloring AGC26 C
    P1155 [NOIP2008 提高组] 双栈排序
    21.10.27模拟 solve
    21.10.27模拟 P4157 [SCOI2006]整数划分
    P2168 [NOI2015] 荷马史诗
    P3052 [USACO12MAR]Cows in a Skyscraper G
    P2533 [AHOI2012]信号塔 P1742 最小圆覆盖
  • 原文地址:https://www.cnblogs.com/nulisaonian/p/6069969.html
Copyright © 2011-2022 走看看