当前位置:网站首页>CPU占用过高问题的排查
CPU占用过高问题的排查
2022-08-09 15:48:00 【知知之之】
1.登陆服务器,top -d 1命令查看当前占用cpu资源最多的进程id
2. ps -mp pid -o THREAD,tid,time命令查看该进程的线程情况,找到tid
3. printf "%x\n" tId 将tid转成16进制 0xtid
4. jstack pid|grep 0xtid -A 30 ----查看具体堆栈信息,从栈中找到对应的代码段
5. 根据找到的代码段,进行具体的分析。
例如发现大量线程阻塞
定位到有问题的代码片段
边栏推荐
猜你喜欢
成为CTO,6个月被老板干死,我损失了1000万
网络——虚拟专用网和地址转换NAT
nacos控制台权限管理
对象模型-虚指针虚表
3种特征分箱方法!
推荐一些面向 Web 开发者的杀手级网站
[Server data recovery] Data recovery case of file system data loss caused by SAN LUN mapping error
B48 - 基于51单片机的学生管理门禁系统设计
Selenium的安装
2.1, pay attention to the network based on parallel context scenario text image super-resolution
随机推荐
ESP8266-Arduino编程实例-MQ-4气体传感器驱动
ffmpeg通过rtsp获取h264码流
Installation and use of Lombok plugin in IDEA
网络——局域网和广域网
August 9, 2022: Build .NET apps in C# -- use the Visual Studio Code debugger to interactively debug .NET apps (won't, fail)
B46 - STM32太阳能充电智能心率监测骑行仪
【Web渗透】信息收集篇——Google搜索引擎(二)
领先实践|全球最大红酒App如何用设计冲刺创新vivino模式
yolov5训练并生成rknn模型以及3588平台部署
Vim practical skills_2. Normal mode and insert mode
【Web渗透】信息收集篇——Google搜索引擎(一)
B49 - 基于STM32单片机的心率血氧检测与远程定位报警装置
Knowledge Bits - How to Write a Project Summary
Sigrity PowerSI 特征阻抗和耦合度仿真
QT工程编译过程学习
现在,怎么挑选舞台租赁LED显示屏?
Using Prometheus skillfully to extend the kubernetes scheduler
Codeforces Round # 806 (Div. 4) | | precipitation) bloodbath wudaokou
智慧灯杆网关智慧交通应用
How bad can a programmer be?