# Unbiased Java CPU profiling with JFR in JDK 25

DevFeed: [Unbiased Java CPU profiling with JFR in JDK 25](<https://devfeed.tech/articles/unbiased-java-cpu-profiling-with-jfr-in-jdk-25-2272.md>)

Original publisher: [Read original article](<https://www.datadoghq.com/blog/engineering/jfr-cpu-time-profiling/>)

Author: Jaroslav Bachorík; Scott Gerring

Published: 2026-07-22T00:00:00Z

Content type: article

Language: en

Sources: [Datadog | The Monitor blog](<https://devfeed.tech/sources/datadog-the-monitor-blog.md>)

Topics: [cpu](<https://devfeed.tech/topics/cpu.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [community](<https://devfeed.tech/tags/community.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [event](<https://devfeed.tech/tags/event.md>), [internals](<https://devfeed.tech/tags/internals.md>), [java](<https://devfeed.tech/tags/java.md>), [latency](<https://devfeed.tech/tags/latency.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [production](<https://devfeed.tech/tags/production.md>), [sap](<https://devfeed.tech/tags/sap.md>), [scale](<https://devfeed.tech/tags/scale.md>), [traces](<https://devfeed.tech/tags/traces.md>)

## AI overview

The article explains why existing JVM sampling can misrepresent CPU-bound hotspots and describes a new JFR CPU profiling event introduced in JDK 25.

## Source excerpt

Modern Java profilers often rely on unsupported JVM internals for accurate CPU profiling. Here's how engineers from Datadog, SAP, Amazon, and the OpenJDK community helped bring a new CPU profiling event to JDK 25.