Unbiased Java CPU profiling with JFR in JDK 25
Blog post from Datadog
Java Flight Recorder (JFR) has long been a vital tool for Java engineers to diagnose performance issues, but its sampling can be biased, especially in CPU-bound investigations, leading to incomplete results. To address this, modern Java profilers, including Datadog's, have combined JFR with agents built on the Java Virtual Machine Tool Interface (JVMTI) and other low-level mechanisms like AsyncGetCallTrace to enhance accuracy. This collaboration with SAP, Amazon, and the OpenJDK community has led to the introduction of a new first-class CPU profiling event in JFR, starting with JDK 25. This new event promises unbiased CPU-time sampling directly within the JVM, reducing reliance on unsupported APIs and enhancing profiling accuracy. The initiative also aims to improve the JVM's profiling capabilities further, with ongoing efforts to support native frames and capture stacks around specific events. As the Java ecosystem adopts newer JDK versions, this development sets the stage for a new generation of Java profiling tools that offer reliable, production-safe diagnostics.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.