1. The top command
Through the top command, the PID is used by the following jstat jmap
top What do you think of the results
2. View GC statistics
jstat [-command options] [vmid] [interval time/ms] [number of queries]
jstat -gcutil 11802 2000
-options vmid collection time interval ms
jstat -help
Collection results
- S0: Current ratio of surviving zone 1
- S1: Current ratio of surviving zone 2
- E: Usage ratio of Eden Park</