查看gc的次数

1,查找出程序进程id

# 这里输出tomcat的进程id
echo `ps -ef|grep tomcat|grep -v 'grep'|awk '{print $2'}`

2,查看gc的次数

jstat -gc pid

 

posted @ 2018-12-02 11:55  冬马党  阅读(1874)  评论(0)    收藏  举报