tomcat打印GC日志

在catinlin.sh的最上面加上

 JAVA_OPTS=" -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:/lnmp/tomcat8/gc.$$.log"

原文地址:https://www.cnblogs.com/tiancai/p/9283158.html