当前位置:网站首页>CPU over high diagnosis and troubleshooting
CPU over high diagnosis and troubleshooting
2022-06-25 15:24:00 【Running pig ZC】
1: Code preparation
Loop printing random numbers
public class TestCPUHigh {
public static void main(String[] args) {
while (true){
System.out.println(new java.util.Random().nextInt(66669999));
}
}
}
2: The phenomenon
pid = 5783 The process of is very expensive
3: The diagnosis
3.1:top
3.2: Locate the process jps
3.3: Go to code
Specific threads pid 5783
ps -mp 5783-o THREAD,tid,time
3.4: Hexadecimal conversion
Threads id Switch to 16 Base number ( Letter lowercase , If there are letters ) The thread in the figure takes a long time TID=5784 convert to 16 Base number 1698
3.5:jstack location
jstack 5783 | grep 1698 -A60
View stack information 60 That's ok
3.6: Find familiar classes
Find the class from your project find TestCPUHigh.java Of the 6 That's ok , Diagnosis complete
边栏推荐
- System Verilog - data type
- 通过客户经理的开户链接开股票账户安全吗?
- One question per day, punch in
- User defined data type - structure
- Automatic correlation between QT signal and slot
- Yolov5 Lite: fewer parameters, higher accuracy and faster detection speed
- Image segmentation based on deep learning: network structure design
- Use Matplotlib to draw a line chart
- QT animation loading and closing window
- Mining procedure processing
猜你喜欢
Review of arrays and pointers triggered by a topic
SPARQL learning notes of query, an rrdf query language
Source code analysis of zeromq lockless queue
basic_ String mind map
Learning notes on February 5, 2022 (C language)
Using R language in jupyter notebook
[paper notes] rethinking and improving relative position encoding for vision transformer
Yolov3 spp Darknet version to caffemodel and then to OM model
Yolov5 Lite: fewer parameters, higher accuracy and faster detection speed
Learning notes on February 18, 2022 (C language)
随机推荐
How to cut the size of a moving picture? Try this online photo cropping tool
Character encoding minutes
Postman usage notes, interface framework notes
5 connection modes of QT signal slot
[paper notes] contextual transformer networks for visual recognition
How to package rpm
semget No space left on device
Function of getinstance() method
Yolov4 coco pre train Darknet weight file
Business layer - upper and lower computer communication protocol
Graphic control and layout basis of R visualization
Use Matplotlib to draw a line chart
Daily question, Caesar code,
One code per day - day one
Errno perrno and strerrno
BM setup process
Usage of pure virtual functions
From 408 to independent proposition, 211 to postgraduate entrance examination of Guizhou University
SPARQL learning notes of query, an rrdf query language
Kali modify IP address