当前位置:网站首页>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
边栏推荐
- How to cut the size of a moving picture? Try this online photo cropping tool
- Qmake uses toplevel or topbuilddir
- JSON module dictionary and string conversion
- Leetcode121 timing of buying and selling stocks
- 55 specific ways to improve program design (1)
- Data preprocessing - normalization and standardization
- [paper notes] mcunetv2: memory efficient patch based influence for tiny deep learning
- Std:: vector minutes
- QT opens the print dialog box in a text editor
- QT article outline
猜你喜欢

JS select all exercise

Data feature analysis skills - correlation test

‘make_ unique’ is not a member of ‘std’

Std:: vector minutes

Character encoding minutes

Yolov4 coco pre train Darknet weight file

Kali modify IP address

Learning to Measure Changes: Fully Convolutional Siamese Metric Networks for Scene Change Detection

Ubuntu 20.04 installing mysql8.0 and modifying the MySQL password

JSON module dictionary and string conversion
随机推荐
[paper notes] street view change detection with deconvolutional networks
Sampling method and descriptive statistical function in R language
Cross compilation correlation of curl Library
If multiple signals point to the same slot function, you want to know which signal is triggered.
Mining procedure processing
Pytorch | how to save and load pytorch models?
Is it safe to open a stock account online?
网上办理股票开户安全吗?
3. Sequential structure multiple choice questions
High precision addition
Detailed description of crontab command format and summary of common writing methods
Leetcode123 timing of buying and selling stocks III
QT database connection deletion
RDB and AOF persistence of redis
Detailed summary of reasons why alertmanager fails to send alarm messages at specified intervals / irregularly
QT pop up open file dialog box QFileDialog
System Verilog - function and task
How to package rpm
QT file reading -qfile
Source code analysis of zeromq lockless queue