当前位置:网站首页>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
边栏推荐
- Design and implementation of timer
- QT source code online view
- Software packaging and deployment
- Using Visual Studio
- [paper notes] contextual transformer networks for visual recognition
- Graphic control and layout basis of R visualization
- Installing QT plug-in in Visual Studio
- QT inline dialog
- Solve the go project compilation error go mod: no such file or directory
- Study notes of cmake
猜你喜欢

QT loading third-party library basic operation

Fishing detection software

(1) Introduction

From 408 to independent proposition, 211 to postgraduate entrance examination of Guizhou University

Some usage records about using pyqt5

Yolov4 coco pre train Darknet weight file

Custom structure type

Review of arrays and pointers triggered by a topic
![[paper notes] contextual transformer networks for visual recognition](/img/e4/45185983e28664564bbf79023ccbf6.jpg)
[paper notes] contextual transformer networks for visual recognition

How to cut the size of a moving picture? Try this online photo cropping tool
随机推荐
JS select all exercise
Introduction to flexible array
Yolov4 coco pre train Darknet weight file
Review of arrays and pointers triggered by a topic
Generation method and usage of coredump
Common classes in QT
[C language] 32 keyword memory skills
3. Sequential structure multiple choice questions
Daily question, magic square simulation
One question per day, a classic simulation question
Leetcode122 timing of buying and selling stocks II
Data feature analysis skills - correlation test
Semaphore function
Is it safe to open an account for new bonds? What preparations are needed
网上办理股票开户安全吗?
2. operator and expression multiple choice questions
Vs2019 scanf error
Esp8266 building smart home system
Common operations in VIM
Sampling method and descriptive statistical function in R language