S0C S1C S0U S1U EC EU OC OU MC MU CCSC CCSU YGC YGCT FGC FGCT GCT
245760.0 245760.0 33804.8 0.0 1966080.0 364994.1 8028160.0 138003.6 25984.0 25429.9 2944.0 2877.2 8 0.451 2 0.153 0.603
This is the output of ./jstat -gc pid 250ms 0 I want to know what is the unit YGCT or FGCT? i.e. us or ms?
The unit is second according to https://docs.oracle.com/javase/7/docs/technotes/tools/share/jstat.html.
Is not explicitly stated but it is easy to grasp from the paragraph Using the gcutil option:
The output of this example shows that a young generation collection occurred between the 3rd and 4th sample. The collection took 0.001 seconds and promoted objects ...
0.001 is the difference between 2 sequential YGCT because is about a young generation collection; check the paragraph at the link above in order to learn more about the context.
Accepting seconds as the unit for YGCT while also considering that would be illogical/confusing to have something else for FGCT than one could conclude that seconds is also the unit for FGCT.
UPDATE
jstat for java 8, jstat for java 9, jstat for java 10 and jstat for java 11 all offer the same example but with other values than mentioned here; see The collection took 0.078 seconds paragraph. I stress again that is important to understand what the time measuring is for (YGCT) and why (because is about a young generation collection).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With