所有正在运行的线程的栈上的引用变量。所有的全局变量。所有ClassLoader。。。。。。。。。and so on
http://help.eclipse.org 搜 “Garbage Collection Roots”
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Fconcepts%2Fgcroots.html&cp=37_2_3
java -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly Main
JVM可视化工具
JAVA_SDK/bin/jvisualvm 可打开