# Tracking Java Native Memory With JDK Flight Recorder

DevFeed: [Tracking Java Native Memory With JDK Flight Recorder](<https://devfeed.tech/articles/tracking-java-native-memory-with-jdk-flight-recorder-18885.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/tracking-java-native-memory-with-jdk-flight-recorder/>)

Published: 2023-12-17T18:29:00Z

Content type: tutorial

Language: en

Sources: [Gunnar Morling](<https://devfeed.tech/sources/gunnar-morling.md>)

Topics: [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [Java](<https://devfeed.tech/topics/java.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>)

Tags: [java](<https://devfeed.tech/tags/java.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [memory](<https://devfeed.tech/tags/memory.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [performance](<https://devfeed.tech/tags/performance.md>), [streaming](<https://devfeed.tech/tags/streaming.md>)

## AI overview

This article explains how JDK Flight Recorder can continuously track Java native memory usage through Native Memory Tracking data. It covers the relevant JFR event types introduced in Java 20, example off-heap allocations, and streaming the data to monitoring dashboards.

## Source excerpt

Table of Contents An Example Tracking RSS As regular readers of this blog will now, JDK Flight Recorder (JFR) is one of my favorite tools of the Java platform. This low-overhead event recording engine built into the JVM is invaluable for observing the runtime characteristics of Java applications and identifying any potential performance issues. JFR continues to become better and better with every new release, with one recent addition being support for native memory tracking (NMT).