当前位置:网站首页>How to locate the cause of high CPU on the server
How to locate the cause of high CPU on the server
2022-06-09 21:26:00 【Brother Ali Xiong】
Recently, the production server always prompts cpu Tips for high usage , Out of interest , Check it out , Found the cause of the problem . The following is a summary of how to locate the cause CPU The height problem .
1、 Use top Command to find CPU Use the highest process
top
2、 Use top -Hp process Id , Find the most used thread
top -Hp 6962
3、 Put these threads id Convert to 16 It's binary ,printf “%x\n” Threads Id
printf "%x\n" 28464、jstack Print process stack information (6962 Is a process id,a33 Is the thread id It's the same as 16 Base number )
jstack 6962 | grep a33 -C5 --colorThis will lead to CPU Specific code with high usage rate . Hee hee hee hee ~~~~~
边栏推荐
- Lambda Exception
- Deeply understand the leftmost prefix principle of Federated indexes
- ASP. Net mobile terminal inventory system, source code sharing
- Logistic regression summary
- In the first quarter, the global semiconductor equipment shipment reached US $24.7 billion, a year-on-year increase of 5%
- Go calls several simple examples of kubernetes API
- 加密狗驱动解决方案
- STM32 memory knowledge
- Sort - quick sort
- The server responded that static resources were not loaded
猜你喜欢

QT database application 21 data grouping export

numpy重复数据

Heap (priority queue)

Add the "back" function button to the toolbar of the idea navigation bar of the "stepping pit record"

A thorough understanding of the very important ticket lock in concurrent programming -- stampedlock

paddleNLP-BUG和一些细节记录【一】

swagger上的model和返回的数据字段不一致的问题

PaddleNLP通用信息抽取技术UIE【一】产业应用实例:信息抽取{实体关系抽取、中文分词、精准实体标。情感分析等}、文本纠错、问答系统、闲聊机器人、定制训练

二叉搜索树

Example: use C # Net to teach you how to develop wechat official account (19) -- use wechat payment to transfer to wechat fans' change accounts
随机推荐
【流量分析】buu_[安洵杯 2019]Attack
区间值(单调栈)
Paddlenlp general information extraction technology UIE [i] industrial application examples: information extraction {entity relationship extraction, Chinese word segmentation, accurate entity markers,
Es automatic stop
Thread interrupt
GBase8s数据库select子句6
Add the "back" function button to the toolbar of the idea navigation bar of the "stepping pit record"
完美数(算数借位问题)
Pychart always displays the collecting data solution after entering the debug mode
To simplify, one annotation completes the database configuration
剑指offer1-32题思路
Using ArrayList to lose data in multithreaded scenarios
Goldfish rhca memoirs: do447 management list -- Chapter experiment
Analysis of source code data anti leakage solution
Tke builds efk log service
Configuration du serveur DHCP et de la connexion client
Scheduled backup of laravel 8 database
Kubevirt network source code analysis (3) - virtual machine hot migration network
739. daily temperature force deduction (monotonic decreasing stack)
浏览器无法打开百度,别的可以正常打开