Lokvin Wiki
Advertisement

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

Advertisement