# 每 1000ms 顯示一次 pid process 的 gc 狀態,每 24 行重新顯示一次 header,共顯示無限多次 (0)。 jstat -gc -h 24 [pid] 1000ms 0 # 同樣是 1000ms (== 1s)。 jstat -gc -h 24 [pid] 1s 0