本文共 225 字,大约阅读时间需要 1 分钟。
记录一次jmeter测试时出现cpu抖动
![](https://img-blog.csdnimg.cn/20200604154546878.png)
- 使用top -H -p <pid> 查看现场使用率:top -H -p 3658
![](https://img-blog.csdnimg.cn/20200604154805244.png)
- 使用jstack查看线程:jstack 3658| grep `printf %x 3666`
![](https://img-blog.csdnimg.cn/20200604155206274.png)
- 使用jstat查看gc详情(每隔1000毫秒打印一次,总共打印100次):jstat -gcutil 3015 1000 100
ps:可以看到Edan区数据每隔1秒增加5%,ygc多
![](https://img-blog.csdnimg.cn/20200604155342245.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2Jsb2dfenhi,size_16,color_FFFFFF,t_70)
解决方案
转载地址:http://csyvb.baihongyu.com/