Lokvin Wiki
Tag: sourceedit
Tag: sourceedit
Line 9: Line 9:
 
# -f , match against full argument list, default against process name.
 
# -f , match against full argument list, default against process name.
 
pgrep -f java
 
pgrep -f java
  +
  +
* jstat 统计 GC
  +
jstat -gcutil -t 11 2000

Revision as of 12:08, 13 July 2017

jmap dump memory heap

  • jmap dump memory heap
 jmap -dump:format=b,file=name.bin  <process-id>
  • open dump file (*.bin, *.hprof) with jvisualvm or Eclipse MAT
  • pgrep - find process by name.
 # -f , match against full argument list, default against process name. 
pgrep -f java
  • jstat 统计 GC

jstat -gcutil -t 11 2000