当前位置:网站首页>如何定位到服务器CPU飙高的原因
如何定位到服务器CPU飙高的原因
2022-06-09 20:53:00 【阿里雄哥】
最近生产的服务器老是提示cpu使用率飙高的提示,出于兴趣,排查一下,找到了问题的原因。下面就总结一下如何定位到导致CPU飙高的问题。
1、使用top指令找到CPU使用最高的进程
top
2、使用 top -Hp 进程Id ,找到使用率最高的线程
top -Hp 6962
3、将这些线程id转换为16进制的,printf “%x\n” 线程Id
printf "%x\n" 28464、jstack 打印进程堆栈信息 (6962是进程id,a33是线程id的对应的16进制)
jstack 6962 | grep a33 -C5 --color这要就能找到导致CPU使用率飙高的具体的代码了。嘻嘻嘻嘻~~~~~
边栏推荐
- idea:new没有class
- 强烈推荐:数据标注平台doccano----简介、安装、使用、踩坑记录
- 多线程场景下使用 ArrayList 丢数据
- 部署 Kubernetes + KubeVirt 以及 KubeVirt的基本使用
- 部署 cinder-csi-plugin 遇到的几个问题
- Share 4 methods of JS deep copy
- Gbase8s database select clause 4
- A thorough understanding of the very important ticket lock in concurrent programming -- stampedlock
- KubeVirt CICD Tekton (2) - task run:datavolume & ssh-key
- 通过快排O(n)内查找第K大元素思路
猜你喜欢

Unbutu configuring DHCP server and client connections

Force buckle 84- the largest rectangle in the histogram (monotone stack)

二叉树的层序遍历

『踩坑记录』IDEA导航栏工具栏添加“后退”功能按钮

unbutu配置DHCP服務器及客戶端連接

es自动停止

MFC connection database shows no data source name found and no default driver specified

深入理解 Go Modules 的 go.mod 與 go.sum

Do your filial duty to make an old people's fall prevention alarm system for your family
![Fedformer:frequency enhanced decomposedtransformer for long term series forecasting[still learning...]](/img/58/d73cbaaeefc255816fe8cdc7165419.png)
Fedformer:frequency enhanced decomposedtransformer for long term series forecasting[still learning...]
随机推荐
es自动停止
逻辑回归总结
(I) apple has open source, but so what?
KubeVirt CICD Tekton (2) - task run:datavolume & ssh-key
MediaTek: the market demand will not disappear, and the compound annual growth rate of revenue in the next three years will exceed 14%
线性回归总结
[cf] 797 div3 E. Price Maximization
Do your filial duty to make an old people's fall prevention alarm system for your family
Latex数学符号大全
[time series] TFT: multi-step direct prediction of interpretable time series transformers
PaddleNLP--UIE(二)--小样本快速提升性能(含doccona标注)
Mqtt graphical client-mqttx installation and use tutorial
Gbase8s database select Clause 6
Fedformer:frequency enhanced decomposedtransformer for long term series forecasting[still learning...]
Set up ngrok server, realize intranet penetration service, and realize online access from external network to internal network
Lambda Exception
A thorough understanding of the very important ticket lock in concurrent programming -- stampedlock
idea:new没有class
[cf] 797 div3 E. Price Maximization
Goldfish rhca memoirs: do447 management list -- Chapter experiment