2

程序运行时CPU异常排查

 2 years ago
source link: https://www.wencst.com/archives/2306
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

程序运行时CPU异常排查

作者: wencst 分类: JAVA,程序设计 发布时间: 2022-09-15 18:46 阅读: 8 次

1.top查看CPU高的进程
2.java程序可以打印线程栈
3.java可以看线程的CPU排高的线程
4.如果是同一个线程CPU占比高,则多次打印该线程栈
5.找到多次线程栈的共同方法
6.代码中排查该方法,找出死循环问题
7.如果不是同一个线程,则查看多个线程的多次线程栈
8.找到多个线程的共同点

先记录方法论,后续补充具体示例以便大家参考。

如果文章对您有用,扫一下支付宝的红包,不胜感激!

欢迎加入QQ群进行技术交流:656897351(各种技术、招聘、兼职、培训欢迎加入)

Leave a Reply Cancel reply

You must be logged in to post a comment.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK