`
wcj10051891
  • 浏览: 25770 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类

jstat用法

JVM 
阅读更多

jstat [ generalOption | outputOptions vmid [interval[s|ms] [count]] ]

vmid 可用jps -ml查看

1.generalOption:

-help Display help message.
-version Display version information.
-options Display list of statistics options. See the Output Options section below.

2.outputOptions:

class      类加载器行为统计,Statistics on the behavior of the class loader.
compiler JIT编译器行为,Statistics of the behavior of the HotSpot Just-in-Time compiler.
gc heap   垃圾收集行为,Statistics of the behavior of the garbage collected heap.
gccapacity 各代区域容量统计,Statistics of the capacities of the generations and their corresponding spaces.
gccause 类似-gcutil,附上垃圾收集的原因。Summary of garbage collection statistics (same as -gcutil), with the cause of the last and current (if applicable) garbage collection events.
gcnew 新生代gc行为。Statistics of the behavior of the new generation.
gcnewcapacity 新生代容量统计。Statistics of the sizes of the new generations and its corresponding spaces.
gcold 老生代gc行为。Statistics of the behavior of the old and permanent generations.
gcoldcapacity 老生代容量统计。Statistics of the sizes of the old generation.
gcpermcapacity 永久代容量统计。Statistics of the sizes of the permanent generation.
gcutil 当前JVM垃圾收集描述。Summary of garbage collection statistics.
printcompilation 方法编译统计。HotSpot compilation method statistics. 


jstat [ generalOption | outputOptions vmid [interval[s|ms] [count]] ]
jstat -op -t -h20 vmid ms/m

-t 第一列附加启动以来的timestamp
-h20 每打印20行时附加列头信息
vmid  jvm进程id
ms/m   打印时长间隔



各选项输出列说明
-gc Option

examples:

jstat -gc -h50 29617 3000
每隔3000ms输出一次gc统计信息,且每隔50行输出一次列头信息
S0C    S1C    S0U    S1U      EC       EU        OC         OU       PC     PU    YGC     YGCT    FGC    FGCT     GCT  
9536.0 9152.0 544.0   0.0   68672.0  66932.0   174784.0   88186.1   53120.0 51319.9     36    0.902   1      0.139    1.041
9536.0 9152.0 544.0   0.0   68672.0  66932.0   174784.0   88186.1   53120.0 51319.9     36    0.902   1      0.139    1.041

Garbage-collected heap statistics  Column Description

S0C  Current survivor space 0 capacity (KB). 当前Survivor 0容量
S1C  Current survivor space 1 capacity (KB). 当前Survivor 1容量
S0U  Survivor space 0 utilization (KB). 当前Survivor 0占用
S1U  Survivor space 1 utilization (KB). 当前Survivor 1占用
EC  Current eden space capacity (KB). 当前eden容量
EU  Eden space utilization (KB). 当前eden占用
OC  Current old space capacity (KB). 当前老区容量
OU  Old space utilization (KB). 当前老区占用
PC  Current permanent space capacity (KB). 当前永久代容量
PU  Permanent space utilization (KB). 当前永久代占用
YGC  Number of young generation GC Events. 年轻代GC累计次数
YGCT  Young generation garbage collection time. 年轻代GC耗时
FGC  Number of full GC events. Full GC 累计次数
FGCT  Full garbage collection time. Full GC 累计耗时
GCT  Total garbage collection time.  总GC累计耗时

总堆:262144k
新生代:98304K
幸存0:12288k
幸存1:12288k
eden:73728k
老生代:163840k
永久代初始:51200K
永久代最大:65536K

 

分享到:
评论

相关推荐

    jstat-examples:jstat库的用法示例

    jstat-示例 使用示例 实例图 机器学习 :线性回归 :非线性回归 :使用香草KNN算法进行分类 :具有多个线程的KNN分类 :使用KMeans进行聚类 :后勤分类 :使用正则化LassoRegularizer和RidgeRegularizer线性...

    jstat-statistics-toolkit:IPM软件包-用于统计分析的jStat库

    用户只需要在代码服务中导入库并使用jStat对象访问它jStat 。 用法 有很多示例可以直接使用。 示例服务仅显示其中的一部分。 资产 代码库 JStatLib-核心库,可作为jStat对象访问 代码服务 例子 ...

    JVM监控工具介绍

    JVM监控工具介绍:详细介绍jstack, jconsole, jinfo, jmap, jdb, jstat 等命令的使用方法

    Java性能调优大全

    java性能调优大全,内置了较全的资料: visualVM使用 JVM性能调优,典型配置,JVM启动配置。 OMM的场景 jstat详解 性能分析工具比对 内存溢出解决方法。

    java-虚拟机 操作系统监控工具-源码

    支持生成火焰图(采样事件包括CPU、内存分配、线程栈、Java方法调用栈等) 支持Java代码反编译生成 支持Java代码热更新(可指定ClassLoader) 支持远程执行GC 支持远程执行JDK自带工具命令,包含但不限于jps、jstat...

    Java后端面试问题整理.docx

    • 了解JVM性能监控以及调优,会使用jps、jstack、jmap、jstat、jhat,了解内存泄露排查具体方法 • Java基础 • 熟练的使用Java语言进行面向对象程序设计,熟悉Java语言特性 • 熟悉常用排序,堆栈,树等数据结构和...

    jvm信息jmap使用的基本方法教程

    JDK本身提供了很多方便的JVM性能调优监控工具,除了集成式的VisualVM和jConsole外,还有jps、jstack、jmap、jhat、jstat等小巧的工具,下面这篇文章主要给大家介绍了关于jvm信息jmap使用的基本方法教程,需要的朋友...

    哈勃蒙

    (您可以阅读韩国自述文件)受支持的客户阿库斯记忆快取Redis nbase-arc 笨拙的MySQL的jstat(GC时间)用法监控下图是Hubblemon监视视图的示例。 您可以使用受支持的客户端,也可以轻松创建自己的客户端。 系统监控...

    java-homework

    (必做)自定义一个Classloader,加载一个Hello.xlass文件,执行hello方法,此文件内容是一个Hello.class文件所有字节(x = 255-x)处理后的文件。 3。 (必做)画一张图,展示Xmx,Xms,Xmn,Meta,DirectMemory...

    Java虚拟机

    常见虚拟机监控与故障处理工具的原理和使用方法。第三部分分析了虚拟机的执行子系统,包括类文件结构、虚拟机类加载机制、虚拟机字节码执行引擎。第四部分讲解了程序的编译与代码的优化,阐述了泛型、自动装箱拆箱、...

    深入理解Java虚拟机视频教程(jvm性能调优+内存模型+虚拟机原理)视频教程

    第51节虚拟机工具-jstat详解00:09:20分钟 | 第52节虚拟机工具-jinfo详解00:05:03分钟 | 第53节虚拟机工具-jmap详解00:08:48分钟 | 第54节虚拟机工具-jhat详解00:08:10分钟 | 第55节虚拟机工具-jstack详解00:10:...

    深入理解JVM内存结构及运行原理全套视频加资料.txt

     第51讲 虚拟机工具-jstat详解 00:09:20  第52讲 虚拟机工具-jinfo详解 00:05:03  第53讲 虚拟机工具-jmap详解 00:08:48  第54讲 虚拟机工具-jhat详解 00:08:10  第55讲 虚拟机工具-jstack详解 00:10:19 ...

Global site tag (gtag.js) - Google Analytics