TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Finding Java Thread Leaks with JDK Flight Recorder and a Bit of SQL

197 点作者 gunnarmorling大约 2 年前

8 条评论

pron大约 2 年前
JFR is one of my favourite Java features. Like eBPF but with more events baked into the runtime and easier to use.<p>Gunnar has used it in some cool ways. Not just <a href="https:&#x2F;&#x2F;github.com&#x2F;moditect&#x2F;jfr-analytics">https:&#x2F;&#x2F;github.com&#x2F;moditect&#x2F;jfr-analytics</a>, which he showcases in this post, but also <a href="https:&#x2F;&#x2F;github.com&#x2F;moditect&#x2F;jfrunit">https:&#x2F;&#x2F;github.com&#x2F;moditect&#x2F;jfrunit</a>
评论 #35023742 未加载
评论 #35021528 未加载
marginalia_nu大约 2 年前
Say what you will about Java, but its tooling is not lacking.
评论 #35025016 未加载
评论 #35021662 未加载
评论 #35021504 未加载
评论 #35028042 未加载
TYMorningCoffee大约 2 年前
&gt; and the stack trace of the parent thread when starting the child thread<p>That&#x27;s incredibly useful. We have a strict policy of all threads and pools being named, but sometimes default named threads sneak in making it difficult to figure out where the thread is used for.
nomemory大约 2 年前
Java is not the most appealing programming language, but you&#x27;ve got to love the JVM, the standard library, all the libraries and frameworks, plus the tooling around the ecosystem.
评论 #35024081 未加载
评论 #35022499 未加载
exabrial大约 2 年前
I need to learn to use jfr apparently. Just something I’ve known existed and never used.<p>We attach a hawtio.io jvm agent to every single prod jvm we run and query the agent using telegraph. (If you don’t do this by the way, you should!) I noticed in the GUI portion of hawtio, it slows you to start&#x2F;stop a jfr recording, but I’ve never messed with it
Scarbutt大约 2 年前
HN being very anti Java, why does such many Java articles make it to the front page?
评论 #35023517 未加载
评论 #35025026 未加载
评论 #35023996 未加载
评论 #35026980 未加载
tmd83大约 2 年前
JFR is nice but I can&#x27;t seem to find issues as easily with the new JMC as I used to 5.5 or before. I&#x27;m not sure what I&#x27;m doing wrong though.
sgt大约 2 年前
For a split second there, I thought a post-airline accident flight recorder had some Java heap dumps that showed major issues and thread leaks.