惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Know Your Adversary
Know Your Adversary
云风的 BLOG
云风的 BLOG
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
罗磊的独立博客
宝玉的分享
宝玉的分享
Vercel News
Vercel News
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
P
Proofpoint News Feed
T
Threatpost
Security Latest
Security Latest
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
I
Intezer
P
Privacy International News Feed
D
Docker
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
M
MIT News - Artificial intelligence
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
Lohrmann on Cybersecurity
Google DeepMind News
Google DeepMind News
The Last Watchdog
The Last Watchdog
A
Arctic Wolf
IT之家
IT之家
S
SegmentFault 最新的问题
S
Securelist
博客园 - 叶小钗
N
News and Events Feed by Topic
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
Hacker News: Ask HN
Hacker News: Ask HN
博客园 - Franky
GbyAI
GbyAI
AI
AI
Y
Y Combinator Blog
WordPress大学
WordPress大学
Latest news
Latest news
Microsoft Security Blog
Microsoft Security Blog
人人都是产品经理
人人都是产品经理
N
News | PayPal Newsroom
The Cloudflare Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
I
InfoQ

Java - 分类 - cywhat's blog

Java编译出现java.lang.ExceptionInInitializerError bash:jstack: 未找到命令
Java线上问题排查
cywhat · 2021-07-20 · via Java - 分类 - cywhat's blog

目录

cywhat 收录于 Java

   约 203 字  预计阅读 1 分钟    次阅读     条评论

目录

1、top 查看占用资源信息以及pid

1
top 

2、查看pid下绑定线程

1
top -Hp pid1(进程id)

3、拿到需要查询的线程pid,转换成16进制

1
printf '%x' pid2(线程id)  ==> 6a4     #6a4为输出结果

4、通过jstack讲java信息输出到文本

1
jstack pid1(进程id) > t.txt

如果jstack报错,请查看 jstack不存在

5、在t.txt文件中查找6a4

1
2
3
vim t.txt

/6a4

6、然后找到自己的collectorl业务代码层具体行数去分析

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏

更新于 2021-07-20

 Java
返回 | 主页