当前位置:网站首页>Troubleshooting method of CPU surge
Troubleshooting method of CPU surge
2022-07-03 14:53:00 【-- cocoa】
1 Let's start with a soaring code
public class FindJavaThreadInTaskManager {
public static void main(String[] args) {
Thread thread = new Thread(new Worker());
thread.start();
}
static class Worker implements Runnable {
@Override
public void run() {
while (true) {
System.out.println("Thread Name:" + Thread.currentThread().getName());
}
}
}
}
2 、 Type the program as jar package t1.jar
3 、 Put it in linux Running on the server jar Package method
java -cp t1.jar test1.FindJavaThreadInTaskManager
4、 find CPU The process with high utilization rate , Get process number , here PID by 5735
5、top -Hp 5735
6、 take pid Turn into 16 Base number
printf %x 5747 =======》1673
7、 View the stack information of the current thread
./jstack 5735 |grep -A 200 1673
边栏推荐
- PHP GD image upload bypass
- [opengl] advanced chapter of texture - principle of flowmap
- 复合类型(自定义类型)
- Simulation of LS -al command in C language
- How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
- [graphics] hair simulation in tressfx
- [engine development] in depth GPU and rendering optimization (basic)
- Zzuli: sum of 1051 square roots
- Tensor 省略号(三个点)切片
- [ue4] geometry drawing pipeline
猜你喜欢
[ue4] HISM large scale vegetation rendering solution
表单文本框的使用(一) 选择文本
dllexport和dllimport
链表有环,快慢指针走3步可以吗
[wechat applet] wxss template style
Tonybot humanoid robot checks the port and corresponds to port 0701
How to color ordinary landscape photos, PS tutorial
There are links in the linked list. Can you walk three steps faster or slower
Tonybot humanoid robot infrared remote control play 0630
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
随机推荐
1017 a divided by B (20 points)
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
分布式事务(Seata) 四大模式详解
[opengl] pre bake using computational shaders
Tonybot humanoid robot starts for the first time 0630
Yolov5进阶之七目标追踪最新环境搭建(二)
Joomla! CMS 3.0~3.4.6 RCE
C language STR function
Zzuli:1053 sine function
[ue4] geometry drawing pipeline
7-10 stack of hats (25 points) (C language solution)
QT - draw something else
Zzuli: cumulative sum of 1050 factorials
链表有环,快慢指针走3步可以吗
Tonybot humanoid robot checks the port and corresponds to port 0701
Niuke bm83 string deformation (case conversion, string inversion, string replacement)
Find books ()
7-9 one way in, two ways out (25 points)
QT program font becomes larger on computers with different resolutions, overflowing controls
Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)