Java memory analysis

jmap dump memory heap
jmap -dump:format=b,file=name.bin 
 * jmap dump memory heap


 * open dump file (*.bin, *.hprof) with jvisualvm or Eclipse MAT

# -f, match against full argument list, default against process name. pgrep -f java
 * pgrep - find process by name.

jstat -gcutil -t 11 2000
 * jstat 统计 GC

jstat 分析内存使用

 * 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