Lokvin Wiki
Advertisement

jmap dump memory heap

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