Lokvin Wiki
Tag: sourceedit
Tag: sourceedit
 
Line 16: Line 16:
   
 
* https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstat.html
 
* https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstat.html
  +
* http://www.cnblogs.com/mazj611/p/3481610.html
  +
* http://www.importnew.com/14933.html

Latest revision as of 02:48, 19 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

jstat 分析内存使用[]