当前位置:网站首页>Use of jstack
Use of jstack
2022-06-13 03:04:00 【good_ boys】
quote :https://blog.csdn.net/mynamepg/article/details/81702075
One 、jstack Command parameter

Two 、jstack solve the problem
1、 A dead cycle leads to cpu soar
Examples of dead cycles :https://blog.csdn.net/goldenfish1919/article/details/8755378
step : Find the process -》 Lookup thread -》 analysis threadDump journal -》 Find out the problem code
a、 see cpu high java process
top
b、 Generate stack logs for all threads under the process
jstack 1721 > 1712.txt
c、 Check which threads in the process occupy a high cpu
top -p 1712 -H
d、 Put the decimal system pid Convert to hexadecimal pid
printf “%x” 8247
2037
2、 Deadlock problem location

3、thread dump Log analysis
jstack:
https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstack.html
java State of thread
https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr034.html
java Thread state transformation :
https://mp.weixin.qq.com/s/GsxeFM7QWuR–Kbpb7At2w
https://blog.csdn.net/mynamepg/article/details/81630487
A dead cycle leads to CPU High load
https://blog.csdn.net/goldenfish1919/article/details/8755378
Regular expressions lead to a dead loop :
https://blog.csdn.net/goldenfish1919/article/details/49123787
————————————————
Copyright notice : This paper is about CSDN Blogger 「 Feng Shu 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/mynamepg/article/details/81702075
边栏推荐
- Radio design and implementation in IVI system
- Wechat applet coordinate location interface usage (II) map interface
- IOS interview · full bat interview record of an IOS programmer (including the true interview questions of Baidu + Netease + Alibaba)
- MySQL index optimization (4)
- Es and kibana deployment and setup
- IOS development internal volume interview questions
- JS merge multiple string arrays to maintain the original order and remove duplicates
- 2022.05.29
- MySQL index
- Collection of IOS development interview and underlying learning videos
猜你喜欢

The extra money we made in those years

【 enregistrement pytorch】 paramètre et tampon des variables pytorch. Self. Register Buffer (), self. Register Paramètre ()

SQL execution process in MySQL (3)

Special topic I of mathematical physics of the sprint strong foundation program

Vant框架中关于IndexBar索引栏的CDN单页面引用,无法正常展示

Vscode liveserver use_ Liveserver startup debugging

Available types in C #_ Unavailable type_ C double question mark_ C question mark point_ C null is not equal to

Six special GPU products for domestic aircraft passed the appraisal and review

开源-校园论坛和资源共享小程序

JS merge multiple string arrays to maintain the original order and remove duplicates
随机推荐
Summary of the latest IOS interview questions in June 2020 (answers)
MySQL index
Introduction to Sitemap_ Sitemap online generation and sorting
Vs 2022 new features_ What's new in visual studio2022
[data analysis and visualization] key points of data drawing 5- the problem of error line
Detailed explanation of UCI datasets and their data processing (with 148 datasets and processing codes attached)
wx.createSelectorQuery()在components获取Dom节点的使用
Spark UDF instance details
Uni app Foundation
Android lightweight cache processing
JMeter quick start
Use and arrangement of wechat applet coordinate position interface (I)
JS merge multiple string arrays to maintain the original order and remove duplicates
Prometheus node_ Exporter installs and registers as a service
C language function strcmp() (compare two strings)
The extra money we made in those years
[data analysis and visualization] key points of data drawing 9- color selection
vant实现移动端的适配
Linked list: palindrome linked list
Linked list: orderly circular linked list