CPU负载解决办法

1. 查看CPU负载

使用top 命令
在这里插入图片描述

2. 打印出堆栈信息

[root@hadoop ~]# jstack PID > 7669.txt

3.把堆栈信息

[root@hadoop ~]# sz 7669,txt

4.查看线程占用情况

[root@hadoop ~]# top -p 7669 -H
在这里插入图片描述

PID进制转换 10进制 转换 16进制 因为 堆栈信息是16进制的

printf “%x” 8247
在这里插入图片描述

在堆栈信息中找 1dfc的线程做分析
发布了48 篇原创文章 · 获赞 7 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_36168479/article/details/102958584