查看使用的垃圾回收器信息

java -XX:+PrintCommandLineFlags -version

jmap -heap <pid>

原文地址:https://www.cnblogs.com/jiuchongxiao/p/10413429.html