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:
版权声明:本文为snowdreamss原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。