Wednesday, 5 June 2019

jstat: Get statistics for every periodic interval


jstat takes 'interval' option, based on this it return the statistics periodically.

Syntax
jstat Option <PID> <n>["ms"|"s"]

Example
jstat -gcoldcapacity <PID> 5ms : Print statistics for every 5 milli seconds.
jstat -gcoldcapacity <PID> 5s : Print statistics for every 5 seconds

$ jstat -gcoldcapacity 86867 5s
   OGCMN       OGCMX        OGC         OC       YGC   FGC    FGCT     GCT   
   175104.0   2796544.0    175104.0    175104.0    12     0    0.000    0.038
   175104.0   2796544.0    175104.0    175104.0    12     0    0.000    0.038
   175104.0   2796544.0    175104.0    175104.0    12     0    0.000    0.038
   175104.0   2796544.0    175104.0    175104.0    12     0    0.000    0.038



Previous                                                 Next                                                 Home

No comments:

Post a Comment