1. Get PID
Lsof-i:port
2, according to get to the PID, view the information about the GC
JSTAT-GC PID 2000 5 View GC information, refresh every two seconds, total refresh five times. The relevant familiarity is listed below:
Capacity of the S0c:survivor0
S1c:survivor1, like s0c.
The use of s0u:survivor0, utilization
S1U:
Ec:eden use of the Cenozoic
EU:
Oc,ou: Some cases of the old age
Pc,pu:permanent space current permanent generation situation
Ygc:numbers of young generation GC events
Ygct:young Generation Garbage Collection time
Fgc:full GC Times
Fgct:full GC Time
Gct:total GC Time
3. View Thread Information
PS-MP pid-o Thread,tid,time|wc-l View the number of threads
PS-MP Pid-o Thread,tid,time | Sort-rn | HEAD-10 thread list and sort by CPU-intensive thread
4. Turn thread tid into 16 binary
printf "%x\n" tid
5. View Thread-occupied memory information
Jstack pid |grep 16 binary thread id-a 30
View Java process Memory Simple example