1. Views of gc
jstat -gc java进程ID
[See FGC column, the graph represents the GC 7]
[Annex: Column DESCRIPTION
S0C: a first area size surviving
S1C: the size of the second region surviving
S0U: using a size of the first region of surviving
S1U: using the size of the second region surviving
EC: Eden area size
using Eden area: EU size
OC: old's size
OU: old's use of size
MC: method area the size of
MU: method area using the size
CCSC: compression class space
CCSU: compression of space use size
YGC: the young generation garbage recycle numbers
YGCT: the young generation garbage collection consume time
FGC: the number of old garbage collector's
FGCT: old's garbage collection time-consuming
GCT: total time consuming garbage collection
2. View the duration of the java process (not a run-time)
ps -eo pid,tty,user,comm,lstart,etime | grep java进程ID
[The following diagram etime column represents the duration, which is the last one, at the time of the first row of 01:56:04 (HH: mm: ss)]
3. Calculate the frequency of GC
We Duration 01:56:04 converted into minutes is 116 minutes, divided by the number of GC 7 minutes, then equal to about 16 minutes, the frequency of which is 16 minutes GC.