# 查看当前运行java线程 jps # 找到运行的线程使用jinfo -flag jinfo -flag UseG1GC [jps看到的线程id] 查看java垃圾收集器 jmap -heap pid