首先是安装MAT(Memory Analyzer Tool):
在eclipse插件官网中找到MAT下载的site,然后点击eclipse的help->install new software,输入site,下载就ok了
使用MAT进行代码调优的经典视频例子:https://www.youtube.com/watch?v=0YebJQSZE_E
代码调优时显示内存分析args:-XX:+HeapDumpOnOutOfMemoryError
进行调优势常用的args:-verbose:gc -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:SurvivorRatio=8
继续学习,持续更新中。。。