cat file|awk ‘{if($3 >= 2048){print $0}}‘
java -XX:+PrintFlagsInitials
很多第三方框架绕过了directBuffer直接申请堆外内存
jcmd $PID GC.run
jstat -gc $PID 1000 10
top -Hp $PID
jmap -heap pid
jmap -dump:format=b,file=heapdump.phrof pid
pmap -p PID
START SIZE RSS PSS DIRTY SWAP PERM MAPPING
00000000daf50000 174784K 174784K 174784K 174784K 0K rw-p [anon]
SIZE:分配的大小
RSS:已经使用的大小
DIRTY:脏页的大小
原文:https://www.cnblogs.com/windliu/p/14951921.html