记录一次偏向锁撤销导致系统停顿的问题
1.现象
某次上线公司内部系统时候,发现系统反应很慢,停顿时间过长。
2.问题排查
遇到这种情况,推测是频繁GC导致,首先是查看日志(配置参数-XX:+PrintGCApplicationStoppedTime),结果如下:
Total time for which application threads were stopped: 0.0050077 seconds, Stopping threads took: 0.0009924
Total time for which application threads were stopped: 0. 0048003 seconds, Stopping threads took: 0.000722
Total time for which application threads were stopped: 0. 0042130 seconds, Stopping threads took: 0.0006124
Total time for which application threads were stopped: 0.0167637 seconds, Stopping threads took: 0. 0002226
Total time for which appLication threads were stopped: 0.0041316 seconds, stopping threads took: 0.0003492
Total time for which application threads were stopped: 0.0116966 seconds, Stopping threads took:
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
