免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2351 | 回复: 1

JVM监控工具--jstat(虚拟机状态监控) [复制链接]

论坛徽章:
0
发表于 2012-03-15 21:22 |显示全部楼层

JVM监控工具--jstat(虚拟机状态监控)









参考:http://docs.oracle.com/javase/6/ ... ls/share/jstat.html



Java代码
  1. 1.class   Statistics on the behavior of the class loader.  
  2. 2.compiler    Statistics of the behavior of the HotSpot Just-in-Time compiler.  
  3. 3.gc  Statistics of the behavior of the garbage collected heap.  
  4. 4.gccapacity  Statistics of the capacities of the generations and their corresponding spaces.  
  5. 5.gccause Summary of garbage collection statistics (same as -gcutil), with the cause of the last and current (if applicable) garbage collection events.  
  6. 6.gcnew   Statistics of the behavior of the new generation.  
  7. 7.gcnewcapacity   Statistics of the sizes of the new generations and its corresponding spaces.  
  8. 8.gcold   Statistics of the behavior of the old and permanent generations.  
  9. 9.gcoldcapacity   Statistics of the sizes of the old generation.  
  10. 10.gcpermcapacity  Statistics of the sizes of the permanent generation.  
  11. 11.gcutil  Summary of garbage collection statistics.  
  12. 12.printcompilation    HotSpot compilation method statistics.  
复制代码
Java代码
  1. 1.C:\Documents and Settings>jstat -gcutil -h2 2112 250 4  
  2. 2.  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT  
  3. 3.  0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  4. 4.  0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  5. 5.  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT  
  6. 6.  0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  7. 7.  0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  8. 8.  
  9. 9.C:\Documents and Settings>jstat -gcutil -t 2112 250 4  
  10. 10.Timestamp         S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT  
  11. 11.         1239.2   0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  12. 12.         1239.5   0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  13. 13.         1239.7   0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  14. 14.         1240.0   0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  15. 15.C:\Documents and Settings>jstat -gcutil 2112 250 4  
  16. 16.  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT  
  17. 17.  0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  18. 18.  0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  19. 19.  0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
  20. 20.  0.00   0.00  13.28   0.00  18.69      0    0.000     0    0.000    0.000  
复制代码

论坛徽章:
0
发表于 2012-03-15 21:22 |显示全部楼层
谢谢分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP