# JDK Flight Recorder

JDK Flight Recorder (JFR) is an observability, monitoring, profiling, and event-collection framework built into the HotSpot JVM and JDK for debugging and analyzing Java applications.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## JDK 27 G1/Parallel/Serial GC changes

DevFeed: [JDK 27 G1/Parallel/Serial GC changes](<https://devfeed.tech/articles/jdk-27-g1-parallel-serial-gc-changes-107427.md>)

Original publisher: [Read original article](<https://inside.java/2026/10/30/jdk27-gc-changes/>)

Author: Thomas Schatzl

Published: 2026-10-30T00:00:00Z

Content type: article

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [openjdk](<https://devfeed.tech/topics/openjdk.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [JEP-401](<https://devfeed.tech/topics/jep-401.md>)

Tags: [g1](<https://devfeed.tech/tags/g1.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [gc](<https://devfeed.tech/tags/gc.md>), [jdk-27](<https://devfeed.tech/tags/jdk-27.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [serial](<https://devfeed.tech/tags/serial.md>)

### AI overview

JDK 27 makes G1 the default garbage collector across environments; Serial GC remains selectable with `-XX:+UseSerialGC`, and the excerpt notes that G1 is not best for every application. G1 changes also remove heap resizing after Full GC based on the default MinHeapFreeRatio and MaxHeapFreeRatio values, improve adaptive concurrent-marking behavior, and fix reclaiming some humongous objects held alive by weak references. Parallel GC can now lower its adaptive tenuring threshold and expand the heap after repeated large allocations cause Full GCs. Across collectors, TLAB sizing better handles many short-lived, lightly allocating threads, and string-deduplication logs and JFR events improve. The excerpt says there were no notable Serial-specific changes beyond its reduced default use; about half of the roughly 350 GC changes were refactorings and cleanups, and another 35% were fixes and robustness work.

### Source excerpt

Now that the JDK 27 has been released, I thought it would be time to discuss interesting changes in OpenJDK's stop-the-world collectors in the HotSpot VM once more.

## Episode 72 "OpenJDK Bug Fixing, JavaOne, and JDK 28" \[IJN\]

DevFeed: [Episode 72 "OpenJDK Bug Fixing, JavaOne, and JDK 28" \[IJN\]](<https://devfeed.tech/articles/episode-72-openjdk-bug-fixing-javaone-and-jdk-28-ijn-89380.md>)

Original publisher: [Read original article](<https://inside.java/2026/10/17/podcast-072/>)

Author: Nicolai Parlog

Published: 2026-10-17T00:00:00Z

Content type: news

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [openjdk](<https://devfeed.tech/topics/openjdk.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [QCon Software Development Conference](<https://devfeed.tech/topics/qcon-software-development-conference.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [bug](<https://devfeed.tech/tags/bug.md>), [community](<https://devfeed.tech/tags/community.md>), [hotspot](<https://devfeed.tech/tags/hotspot.md>), [jdk-27](<https://devfeed.tech/tags/jdk-27.md>), [jdk-28](<https://devfeed.tech/tags/jdk-28.md>), [news](<https://devfeed.tech/tags/news.md>), [podcast](<https://devfeed.tech/tags/podcast.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

This episode describes a serious JDK release candidate bug that corrupted strings when buffer contents were not copied correctly, and discusses the community process behind analyzing and fixing such bugs. It also covers JavaOne, the Inside Java Podcast, and plans for JDK 28.

### Source excerpt

A critical bug in JDK 27 and how it was fixed, some conference news, and how JDK 28 is shaping up

## JDK 27: The quiet before the storm

DevFeed: [JDK 27: The quiet before the storm](<https://devfeed.tech/articles/jdk-27-the-quiet-before-the-storm-64822.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4229750/jdk-27-the-quiet-before-the-storm.html>)

Author: Simon Ritter

Published: 2026-10-05T09:00:00Z

Content type: release

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [openjdk](<https://devfeed.tech/topics/openjdk.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Project Valhalla](<https://devfeed.tech/topics/project-valhalla.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>)

Tags: [anthropic](<https://devfeed.tech/tags/anthropic.md>), [component](<https://devfeed.tech/tags/component.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [exploits](<https://devfeed.tech/tags/exploits.md>), [java](<https://devfeed.tech/tags/java.md>), [java-open-source-programming-languages-software-development](<https://devfeed.tech/tags/java-open-source-programming-languages-software-development.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-27](<https://devfeed.tech/tags/jdk-27.md>), [jeps](<https://devfeed.tech/tags/jeps.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [project-valhalla](<https://devfeed.tech/tags/project-valhalla.md>), [security](<https://devfeed.tech/tags/security.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

The article reviews JDK 27's preview and finalized features, including structured concurrency, compact object headers, garbage collection, cryptographic APIs, and JFR data redaction. It also previews JDK 28 changes such as a JSON API and the first Project Valhalla features. The author connects the release timing to a new JDK security patch prompted by AI models' improved ability to identify vulnerabilities and develop exploits.

### Source excerpt

Every September, with metronomic regularity, we have a new version of the Java platform. One small point about timing is that the first release candidate of JDK 27 was delayed by two weeks due to the release of the first Critical Security Patch Update (CPSU) for the JDK. The need for a CPSU is a direct implication of AI models, such as Anthropic's Claude Mythos, becoming much better at identifying vulnerabilities and developing exploits. If you're not already re-evaluating your patch strategy for the JDK, you definitely should be. As usual, the new features in each release of Java are primarily driven by a set of JDK Enhancement Proposals (JEPs). In JDK 27, we have nine JEPs, and five of them are features that continue to be revised under the preview feature and incubator modules concept. Let's start with those, as the changes are intentionally minor. Preview and incubator features in JDK 27 JEP 537 brings the vector API back for a record-breaking twelfth incubator. This is not because the API has significant issues; it is because it is a component of the larger Project Valhalla. The API authors don't want to finalize it until Valhalla is delivered (more on Valhalla later). As such, there are no changes from the version in JDK 26. Structured concurrency returns for a solid seventh preview under JEP 533. This is part of the larger OpenJDK Project Loom, a set of features to improve the scalability and reliability of multi-threaded applications. Only minor changes in this release, primarily in the Joiner interface. Lazy constants (JEP 531) return for a third preview. The idea behind this feature is deferred initialization and JVM trust. Lazy constants are data-carrying objects but are treated as true constants by the JVM. This enables the same performance optimizations as declaring a field final. Compared to final fields, however, lazy constants offer greater flexibility for developers in when they are initialized. There are only three small changes to the API in this

## Java Weekly, Issue 666

DevFeed: [Java Weekly, Issue 666](<https://devfeed.tech/articles/java-weekly-issue-666-63816.md>)

Original publisher: [Read original article](<https://www.baeldung.com/java-weekly-666>)

Author: baeldung

Published: 2026-10-02T12:07:00Z

Content type: article

Language: en

Sources: [Baeldung](<https://devfeed.tech/sources/baeldung.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Project Valhalla](<https://devfeed.tech/topics/project-valhalla.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [build-system](<https://devfeed.tech/tags/build-system.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [java](<https://devfeed.tech/tags/java.md>), [no-ads](<https://devfeed.tech/tags/no-ads.md>), [no-after-post](<https://devfeed.tech/tags/no-after-post.md>), [no-before-post](<https://devfeed.tech/tags/no-before-post.md>), [no-optins](<https://devfeed.tech/tags/no-optins.md>), [performance](<https://devfeed.tech/tags/performance.md>), [weekly](<https://devfeed.tech/tags/weekly.md>), [weekly-review](<https://devfeed.tech/tags/weekly-review.md>), [weekly-review-no-ads-no-after-post-no-before-post-no-optins](<https://devfeed.tech/tags/weekly-review-no-ads-no-after-post-no-before-post-no-optins.md>)

### AI overview

This issue of Java Weekly collects Java news, releases, and articles. It highlights JDK 27 performance improvements, JVM benchmarking pitfalls, Java workflow execution, cloud identity and container sizing, alongside framework and tooling updates.

### Source excerpt

Monoliths, Java 28 and performance. A good week. The post Java Weekly, Issue 666 first appeared on Baeldung.

## Faster Post-Quantum Cryptography with JDK Intrinsics

DevFeed: [Faster Post-Quantum Cryptography with JDK Intrinsics](<https://devfeed.tech/articles/faster-post-quantum-cryptography-with-jdk-intrinsics-62318.md>)

Original publisher: [Read original article](<https://inside.java/2026/09/30/faster-post-quantum-cryptography-with-jdk-intrinsics/>)

Author: Mark Powers

Published: 2026-09-30T00:00:00Z

Content type: article

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Post-quantum cryptography](<https://devfeed.tech/topics/post-quantum-cryptography.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>), [cortex a78](<https://devfeed.tech/topics/cortex-a78.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [assembly](<https://devfeed.tech/tags/assembly.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [fips-203](<https://devfeed.tech/tags/fips-203.md>), [fips-204](<https://devfeed.tech/tags/fips-204.md>), [intrinsics](<https://devfeed.tech/tags/intrinsics.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-27](<https://devfeed.tech/tags/jdk-27.md>), [jdk-28](<https://devfeed.tech/tags/jdk-28.md>), [ml-dsa](<https://devfeed.tech/tags/ml-dsa.md>), [ml-kem](<https://devfeed.tech/tags/ml-kem.md>), [ntt](<https://devfeed.tech/tags/ntt.md>), [performance](<https://devfeed.tech/tags/performance.md>), [post-quantum](<https://devfeed.tech/tags/post-quantum.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

The JDK implements post-quantum algorithms including ML-KEM and ML-DSA in Java, while HotSpot can use CPU-specific intrinsics for frequently used, compute-intensive operations. The Java implementations remain portable fallbacks. The article describes polynomial operations suited to optimization and explains why ML-KEM and ML-DSA require algorithm-specific implementations.

### Source excerpt

Find out about the improved Curve25519 field performance in JDK 27 and JDK 28.

## New Features in Java 27

DevFeed: [New Features in Java 27](<https://devfeed.tech/articles/new-features-in-java-27-61640.md>)

Original publisher: [Read original article](<https://www.baeldung.com/java-27-new-features>)

Author: Ralf Ueberfuhr

Published: 2026-09-29T06:55:30Z

Content type: tutorial

Language: en

Sources: [Baeldung](<https://devfeed.tech/sources/baeldung.md>)

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

Tags: [deprecation](<https://devfeed.tech/tags/deprecation.md>), [ecdhe](<https://devfeed.tech/tags/ecdhe.md>), [encrypted](<https://devfeed.tech/tags/encrypted.md>), [encrypted-traffic](<https://devfeed.tech/tags/encrypted-traffic.md>), [garbage-collection](<https://devfeed.tech/tags/garbage-collection.md>), [gc](<https://devfeed.tech/tags/gc.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [hybrid-key-exchange](<https://devfeed.tech/tags/hybrid-key-exchange.md>), [java](<https://devfeed.tech/tags/java.md>), [java-27](<https://devfeed.tech/tags/java-27.md>), [jeps](<https://devfeed.tech/tags/jeps.md>), [ml-kem](<https://devfeed.tech/tags/ml-kem.md>), [popular](<https://devfeed.tech/tags/popular.md>)

### AI overview

This tutorial reviews Java 27 changes, including compact object headers enabled by default, G1 as the default garbage collector across machine sizes, and a post-quantum hybrid key exchange for TLS 1.3. It also distinguishes finalized changes from features still in preview or incubation.

### Source excerpt

Learn what's new in Java 27: which JEPS are final and which are still in preview. The post New Features in Java 27 first appeared on Baeldung.

## JDK 27: The new features of Java 27

DevFeed: [JDK 27: The new features of Java 27](<https://devfeed.tech/articles/jdk-27-the-new-features-of-java-27-47829.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4202901/jdk-27-the-new-features-of-java-27.html>)

Author: Paul Krill

Published: 2026-09-15T12:00:00Z

Content type: release

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Security](<https://devfeed.tech/topics/security.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent-programming](<https://devfeed.tech/tags/concurrent-programming.md>), [java](<https://devfeed.tech/tags/java.md>), [java-27](<https://devfeed.tech/tags/java-27.md>), [java-programming-languages-software-development](<https://devfeed.tech/tags/java-programming-languages-software-development.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-27](<https://devfeed.tech/tags/jdk-27.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [new-features](<https://devfeed.tech/tags/new-features.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [security](<https://devfeed.tech/tags/security.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

An overview of the nine features in the generally available Java Development Kit 27, including G1 as the default garbage collector, post-quantum hybrid key exchange for TLS 1.3, lazy constants, structured concurrency, pattern matching updates, compact object headers, JDK Flight Recorder data redaction, a vector API, and PEM encodings.

### Source excerpt

Java Development Kit 27, an Oracle-driven, planned update to standard Java, is now generally available. This latest update to standard Java has features ranging from making the Garbage-First (G1) garbage collector the default collector and adding structured concurrency to simplify concurrent programming. Overall, there are nine features listed on what is described as a reference implementation of JDK 27. The first five features include making G1 the default garbage collector, post-quantum hybrid key exchange for TLS 1.3, lazy constants, structured concurrency, and primitive types in patterns, instanceof, and switch. The next four include compact object headers, JFR (JDK Flight Recorder) in-process data redaction, a vector API, and PEM (Privacy-Enhanced Mail) encodings for cryptographic objects. JDK 27 can be downloaded at jdk.java.net. With JDK 27, G1 becomes the default garbage collector in all environments, rather than just in server environments. Goals are to ensure that the HotSpot JVM will always select G1 and that performance including throughput, latency, memory footprint, and startup time does not degrade significantly. With post-quantum hybrid key exchange for TLS 1.3, the goal is to enhance the security of Java applications that require secure network communication by implementing hybrid key exchange algorithms. Such algorithms defend against future quantum computing attacks by combining a quantum-resistant algorithm with a traditional algorithm. Lazy constants introduces an API for objects that hold unmodifiable data. Lazy constants are treated as true constants by the JVM, enabling the same performance optimizations that are enabled by declaring a field final. Compared to final fields, however, lazy constants offer greater flexibility in the timing of their initialization. This feature is in a third preview. The goal of primitive types in patterns, instanceof, and switch is to enhance pattern matching by allowing primitive types in all pattern contexts,

## Continuous profiling at Mercado Libre: Turning flamegraphs into fixes

DevFeed: [Continuous profiling at Mercado Libre: Turning flamegraphs into fixes](<https://devfeed.tech/articles/continuous-profiling-at-mercado-libre-turning-flamegraphs-into-fixes-22550.md>)

Original publisher: [Read original article](<https://medium.com/mercadolibre-tech/continuous-profiling-at-mercado-libre-turning-flamegraphs-into-fixes-2ee371c32bfd?source=rss----5011f85401f0---4>)

Author: Elton Hoffmann

Published: 2026-03-11T01:27:33Z

Content type: article

Language: en

Sources: [Mercado Libre Tech](<https://devfeed.tech/sources/mercado-libre-tech.md>)

Topics: [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [internal developer platform automation](<https://devfeed.tech/topics/internal-developer-platform-automation.md>), [Platform Engineering](<https://devfeed.tech/topics/platform-engineering.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [threadpools](<https://devfeed.tech/topics/threadpools.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [continuous](<https://devfeed.tech/tags/continuous.md>), [gc](<https://devfeed.tech/tags/gc.md>), [mercado](<https://devfeed.tech/tags/mercado.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [observability](<https://devfeed.tech/tags/observability.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-engineering](<https://devfeed.tech/tags/performance-engineering.md>), [platform](<https://devfeed.tech/tags/platform.md>), [platform-engineering](<https://devfeed.tech/tags/platform-engineering.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [thread-pool](<https://devfeed.tech/tags/thread-pool.md>)

### AI overview

Mercado Libre built continuous profiling to help teams detect and address recurring performance problems across about 35,000 microservices. It chose low-overhead sampling profilers, preserving language-specific data while standardizing processing around Google's pprof format. A sidecar accesses internal profile routes; collection is limited to a few seconds every few minutes, with only one pod profiled per high-availability cluster. Developers can view profiles and differential flamegraphs in Grafana, while an AI assistant explains behavior and flags bottlenecks. An engine detects runtime-specific patterns such as elevated GC CPU use, and selected findings can trigger AI-generated pull requests. Profiles also support Go Profile-Guided Optimization; the article reports 4-12% CPU improvements in initial use. Collection covers about 90% of Java and Go services in Fury and produces 4-4.5 million profiles daily.

### Source excerpt

We continue our series on Performance Engineering at Mercado Libre. In previous articles, we discussed how we crafted an observability culture across the company, how performance relates to other observability signals, and how the Performance Engineering team partners with Business Units to enhance platform efficiency. Today, we'll show how we built a continuous profiling platform for 35,000 microservices and how we started turning profiles into automated fixes. Context Our goal in the Performance Engineering team is threefold: to ensure uptime; to improve the end-user experience by reducing latency; to reduce computing costs. As a cross-functional team, we usually work with application owners to achieve these goals. In our two years of existence, our joint efforts have taken us through countless incidents and bottlenecks. Each problem is unique, but over time, we've seen some common patterns: high memory allocation, lack of garbage collection (GC) tuning, thread pool saturation, blocking I/O, and heavy workloads processing repeated tasks. Image 1: Typical flamegraph of high CPU usage replacing string patterns Trained eyes spot these signals quickly. But two eyeballs won't scale to thousands of services. Mercado Libre is an ever-growing company, with about 35,000 microservices, 30,000 deploys per day, and more than 16,000 people in IT roles. What are the odds that a performance issue found on one microservice doesn't exist in another? Or at least a similar issue? We often encounter systems with issues that are easy to fix but hard to detect (unless you have the right tools). It became clear we had to scale. We needed a platform-level solution that would let teams self-diagnose and self-tune. By the end of this article, you'll see how we built that and how we now automate both detection and fixes for certain classes of issues. Continuous profiling After setting our goal to improve performance tooling, we developed our own continuous profiling solution. Why profiling,

## Mandrel 25 Released as a Quarkus Native Builder Based on GraalVM 25

DevFeed: [Mandrel 25 Released as a Quarkus Native Builder Based on GraalVM 25](<https://devfeed.tech/articles/mandrel-25-is-here-43627.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/mandrel-25-released/>)

Author: Severin Gehwolf

Published: 2025-10-02T00:00:00Z

Content type: release

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [releases](<https://devfeed.tech/topics/releases.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [recording](<https://devfeed.tech/topics/recording.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>)

Tags: [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [memory](<https://devfeed.tech/tags/memory.md>), [openjdk](<https://devfeed.tech/tags/openjdk.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [recording](<https://devfeed.tech/tags/recording.md>), [releases](<https://devfeed.tech/tags/releases.md>)

### AI overview

Quarkus announces Mandrel 25, its next long-term-support native builder distribution based on GraalVM 25 and OpenJDK 25. The release adds native-image improvements, including enhanced Foreign Function and Memory API support, improved metadata handling, and new monitoring capabilities.

### Source excerpt

We are thrilled to announce the official release of Mandrel 25! The beginning of the next LTS version of the Quarkus native builder. Mandrel 25 is a downstream distribution of the GraalVM 25 Community Edition. Mandrel's main goal is to provide a native-image release specifically tailored to support Quarkus. The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications. As such, Mandrel 25 is the same as GraalVM 25 native-image with some small differences. It's built from the same code-base! What's New in GraalVM 25? While there are too many new features added in GraalVM 25 to name them all it's worth highlighting a few. GraalVM 25 includes enhanced support for Foreign Function and Memory API in native-image. It enables FFM API support for MacOSX Aarch64 and Linux Aarch64 (in addition to Linux x86_64). GraalVM 25 also enhances metadata support in native-image. It now throws subclasses of LinkageError when missing metadata is being detected at native image runtime. This way it enables users to handle missing metadata registrations in a more efficient way. Mandrel 25 is Based on OpenJDK 25 Mandrel 25 is based on the new vanilla Eclipse Temurin 25 LTS release. Temurin is an OpenJDK distribution produced at Eclipse. Based on the next LTS release of OpenJDK, Mandrel 25 will be the next LTS version supporting Quarkus' native compilation capabilities for the Quarkus releases to come. New Monitoring Features GraalVM 25 also introduces several new features in the monitoring area of native-image that have been contributed by Red Hat/IBM. Some highlights in JDK Flight Recorder support (JFR), and native memory tracking (NMT) are: JCMD support: GraalVM 25 adds support for the Java Diagnostic Command (JCMD) to native-image. This is useful to asynchronously request specific actions on the running native image. For example a thread dump or a JFR recording can be requested

## Rendering the Java heap as a Treemap

DevFeed: [Rendering the Java heap as a Treemap](<https://devfeed.tech/articles/rendering-the-java-heap-as-a-treemap-25629.md>)

Original publisher: [Read original article](<https://blog.p-y.wtf/rendering-the-java-heap-as-a-treemap>)

Author: Pierre-Yves Ricau

Published: 2024-09-25T04:37:22Z

Content type: article

Language: en

Sources: [Py's blog](<https://devfeed.tech/sources/py-s-blog.md>)

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

Tags: [android](<https://devfeed.tech/tags/android.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [dump](<https://devfeed.tech/tags/dump.md>), [graph-theory](<https://devfeed.tech/tags/graph-theory.md>), [heap](<https://devfeed.tech/tags/heap.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-management](<https://devfeed.tech/tags/memory-management.md>), [rendering](<https://devfeed.tech/tags/rendering.md>)

### AI overview

The author uses YourKit Java Profiler to explore heap dumps and Shark for more complex aggregation queries. A Kotlin script using Shark can locate activity instances, traverse view and view-array references with breadth-first traversal, and render a view hierarchy through Graphviz. For memory analysis, the excerpt distinguishes shallow size (memory occupied by an object itself) from retained size (memory reclaimable when the object and objects retained only through it are garbage-collected). It introduces reachability from references and GC roots as context for discussing dominators, but the excerpt ends before explaining dominators or presenting the treemap.

### Source excerpt

Exploring heap dumps I have investigated many heap dumps over the years, and I usually switch back and forth between two tools: YourKit Java Profiler to poke around the heap and look for interesting things (ask your company to buy a license!) Shark...

## 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).

## Use JFR to profile and monitor native executables

DevFeed: [Use JFR to profile and monitor native executables](<https://devfeed.tech/articles/use-jfr-to-profile-and-monitor-native-executables-43650.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/profile-and-monitor-native-executables-with-jfr/>)

Author: Robert Toyonaga

Published: 2023-07-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [monitor](<https://devfeed.tech/topics/monitor.md>)

Tags: [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>), [monitor](<https://devfeed.tech/tags/monitor.md>), [native](<https://devfeed.tech/tags/native.md>), [profile](<https://devfeed.tech/tags/profile.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>)

### AI overview

This tutorial explains that JDK Flight Recorder can profile and monitor Quarkus applications compiled as native executables. It notes that native executable JFR remains more limited than JVM-based JFR, while highlighting recent improvements that make it useful for observability.

### Source excerpt

Quarkus native executables offer many benefits such as even faster start-up time and low footprint. However, one major drawback is that such native binaries can be less observable. The good news is that you can still use JDK Flight Recorder (JFR) when running your Quarkus applications as native executables. Native executable JFR is still limited compared to regular JFR in the JVM. However, major improvements have been made over the past couple of years that make it a very powerful tool to profile and monitor your native executables. Check out these recent articles to find out more about how you can start using JFR with native executables: How to monitor Quarkus native executables with JFR Improvements to Native Image JFR support in GraalVM for JDK 20

## Finding Java Thread Leaks With JDK Flight Recorder and a Bit Of SQL

DevFeed: [Finding Java Thread Leaks With JDK Flight Recorder and a Bit Of SQL](<https://devfeed.tech/articles/finding-java-thread-leaks-with-jdk-flight-recorder-and-a-bit-of-sql-18819.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/finding-java-thread-leaks-with-jdk-flight-recorder-and-bit-of-sql/>)

Published: 2023-02-28T21:16:10Z

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>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Memory Leaks](<https://devfeed.tech/topics/memory-leaks.md>), [SQL](<https://devfeed.tech/topics/sql.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>), [memory-leak](<https://devfeed.tech/tags/memory-leak.md>), [performance-analysis](<https://devfeed.tech/tags/performance-analysis.md>), [root-cause-analysis](<https://devfeed.tech/tags/root-cause-analysis.md>), [sql](<https://devfeed.tech/tags/sql.md>), [thread](<https://devfeed.tech/tags/thread.md>), [threads](<https://devfeed.tech/tags/threads.md>)

### AI overview

This article explains how to investigate Java thread leaks with JDK Flight Recorder. It describes why thread leaks can cause memory and CPU problems, why thread dumps are limited, and how JFR events can reveal changing thread counts and the source of newly created threads.

### Source excerpt

The other day at work, we had a situation where we suspected a thread leak in one particular service, i.e. code which continuously starts new threads, without taking care of ever stopping them again. Each thread requires a bit of memory for its stack space, so starting an unbounded number of threads can be considered as a form of memory leak, causing your application to run out of memory eventually. In addition, the more threads there are, the more overhead the operating system incurs for scheduling them, until the scheduler itself will consume most of the available CPU resources. Thus it's vital to detect and fix this kind of problem early on.

## Identifying Blocked Producers in Java BlockingQueue with Profiling and JDK Flight Recorder

DevFeed: [Identifying Blocked Producers in Java BlockingQueue with Profiling and JDK Flight Recorder](<https://devfeed.tech/articles/is-your-blocking-queue-blocking-18839.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/is-your-blocking-queue-blocking/>)

Published: 2023-01-03T21:10:00Z

Content type: tutorial

Language: en

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

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

Tags: [blocking](<https://devfeed.tech/tags/blocking.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [performance](<https://devfeed.tech/tags/performance.md>), [threads](<https://devfeed.tech/tags/threads.md>)

### AI overview

This tutorial explains how to detect producer threads blocked while adding work to a bounded Java BlockingQueue. It discusses wall-clock profiling with async-profiler and using custom JDK Flight Recorder events when profiling is unavailable.

### Source excerpt

Table of Contents Emitting Custom Events Filtering "Thread Park" Events Towards Real-Time Analysis of JFR Events Java's BlockingQueue hierarchy is widely used for coordinating work between different producer and consumer threads. When set up with a maximum capacity (i.e. a bounded queue), no more elements can be added by producers to the queue once it is full, until a consumer has taken at least one element. For scenarios where new work may arrive more quickly than it can be consumed, this applies means of back-pressure, ensuring the application doesn't run out of memory eventually, while enqueuing more and more work items.

## Using JFR and JMC to root cause a performance bug in JMC caused by a typo in JFR

DevFeed: [Using JFR and JMC to root cause a performance bug in JMC caused by a typo in JFR](<https://devfeed.tech/articles/using-jfr-and-jmc-to-root-cause-a-performance-bug-in-jmc-caused-by-a-typo-in-jfr-25638.md>)

Original publisher: [Read original article](<https://richardstartin.github.io/posts/jmc-hanging>)

Author: Richard Startin's Blog

Published: 2022-12-18T00:00:00Z

Content type: article

Language: en

Sources: [Richard Startin](<https://devfeed.tech/sources/richard-startin-s-blog.md>)

Topics: [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [Parser](<https://devfeed.tech/topics/parser.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [java](<https://devfeed.tech/tags/java.md>), [load](<https://devfeed.tech/tags/load.md>), [overlap](<https://devfeed.tech/tags/overlap.md>), [performance](<https://devfeed.tech/tags/performance.md>), [profiling](<https://devfeed.tech/tags/profiling.md>)

### AI overview

JMC can take far longer to load a JFR profile when same-thread events of the same type overlap. Its parser groups those events into lanes that are normally disjoint; overlap triggers quadratic scaling, though the excerpt says such files are practically impossible to generate without modifying async-profiler's JFR output. The author profiles JMC during loading with JFR, then examines a flamegraph with over 6,000 CPU samples. A wide frame may be a red herring: sampling cannot distinguish a slow method from one called too often. The excerpt recommends inspecting lower stack frames' code to help distinguish constant-factor costs from algorithmic problems, and ends before the investigation's conclusion.

### Source excerpt

When you open a profile in JMC, it normally takes a few seconds, but there are some profiles that JMC struggles to load. This happens when a profile contains events which violate an assumption made in JMC's parser: events on the same thread are almost always disjoint in their durations. When JMC parses a JFR file, it splits the events of the same type emitted on the same thread into lanes so that events within a lane are disjoint. JMC can handle overlapping events, but assumes this essentially never happens, and exhibits quadratic scaling when events overlap.

## Running JDK Mission Control on Apple M1

DevFeed: [Running JDK Mission Control on Apple M1](<https://devfeed.tech/articles/running-jdk-mission-control-on-apple-m1-18867.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/running-jmc-on-apple-m1/>)

Published: 2022-05-17T08:20:00Z

Content type: tutorial

Language: en

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

Topics: [Java](<https://devfeed.tech/topics/java.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [macOS](<https://devfeed.tech/topics/macos.md>), [Mac Mini](<https://devfeed.tech/topics/mac-mini.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>), [Adoptium](<https://devfeed.tech/topics/adoptium.md>)

Tags: [adoptium](<https://devfeed.tech/tags/adoptium.md>), [apple-m1](<https://devfeed.tech/tags/apple-m1.md>), [arm](<https://devfeed.tech/tags/arm.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [mac-mini](<https://devfeed.tech/tags/mac-mini.md>), [macos](<https://devfeed.tech/tags/macos.md>), [openjdk](<https://devfeed.tech/tags/openjdk.md>), [permission](<https://devfeed.tech/tags/permission.md>), [plist](<https://devfeed.tech/tags/plist.md>)

### AI overview

A troubleshooting guide for running JDK Mission Control on an Apple M1 Mac. It explains that JMC is currently shipped as an x64 application, so configuring it to use an x64 Temurin JDK through Rosetta resolves the startup error, while other applications can continue using an AArch64 JDK.

### Source excerpt

JDK Mission Control (JMC) is invaluable for analysing performance data recording using JDK Flight Recorder (JFR). The other day, I ran into a problem when trying to run JMC on my Mac Mini M1. Mostly for my own reference, here's what I did to overcome it.

## The JDK Flight Recorder File Format

DevFeed: [The JDK Flight Recorder File Format](<https://devfeed.tech/articles/the-jdk-flight-recorder-file-format-18840.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/jdk-flight-recorder-file-format/>)

Published: 2022-02-20T20:15: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>), [openjdk](<https://devfeed.tech/topics/openjdk.md>), [Parser](<https://devfeed.tech/topics/parser.md>)

Tags: [format](<https://devfeed.tech/tags/format.md>), [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>), [openjdk](<https://devfeed.tech/tags/openjdk.md>), [parsing](<https://devfeed.tech/tags/parsing.md>)

### AI overview

This article examines the JDK Flight Recorder file format. It explains that JFR records high-performance runtime events in recording files, notes that the format has no official specification and is an OpenJDK implementation detail, and describes investigating its structure through JDK and JDK Mission Control source code.

### Source excerpt

The JDK Flight Recorder (JFR) is one of Java's secret weapons; deeply integrated into the Hotspot VM, it's a high-performance event collection framework, which lets you collect metrics on runtime aspects like object allocation and garbage collection, class loading, file and network I/O, and lock contention, do method profiling, and much more. JFR data is persisted in recording files (since Java 14, also "realtime" event streaming is supported), which can be loaded for analysis into tools like JDK Mission Control (JMC), or the jfr utility coming with OpenJDK itself.

## JDK Flight Recorder Events in GraalVM Native Binaries

DevFeed: [JDK Flight Recorder Events in GraalVM Native Binaries](<https://devfeed.tech/articles/jdk-flight-recorder-events-in-graalvm-native-binaries-18842.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/jfr-events-in-graalvm-native-binaries/>)

Published: 2021-11-12T17:30: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>), [Quarkus](<https://devfeed.tech/topics/quarkus.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>)

### AI overview

This tutorial explains that GraalVM native binaries support JDK Flight Recorder through GraalVM 21.2, although only a limited set of event types was initially available. It demonstrates enabling custom JFR events in a Quarkus application compiled as a native binary and notes the required configuration option.

### Source excerpt

If you have followed this blog for a while, you'll know that I am a big fan of JDK Flight Recorder (JFR), the low-overhead diagnostics and profiling framework built into the HotSpot Java virtual machine. And indeed, until recently, this meant only HotSpot: Folks compiling their Java applications into GraalVM native binaries could not benefit from all the JFR goodness so far.

## Introducing JfrUnit 1.0.0.Alpha1

DevFeed: [Introducing JfrUnit 1.0.0.Alpha1](<https://devfeed.tech/articles/introducing-jfrunit-1-0-0-alpha1-18835.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/introducing-jfrunit-1-0-0-alpha1/>)

Published: 2021-08-04T17:10:00Z

Content type: release

Language: en

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

Topics: [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Java](<https://devfeed.tech/topics/java.md>), [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Groovy](<https://devfeed.tech/topics/groovy.md>), [Maven](<https://devfeed.tech/topics/maven.md>)

Tags: [groovy](<https://devfeed.tech/tags/groovy.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [junit](<https://devfeed.tech/tags/junit.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [maven-central](<https://devfeed.tech/tags/maven-central.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

### AI overview

The article announces JfrUnit 1.0.0.Alpha1, a JUnit extension for asserting JDK Flight Recorder events in unit tests. It describes uses including validating custom events, detecting potential performance regressions, and white-box testing with JMC Agent, and outlines setup and usage with Maven, Quarkus, Groovy, and Spock examples.

### Source excerpt

Table of Contents Getting Started With JfrUnit Groovier Tests With Spock Outlook Unit testing, for performance It's with great pleasure that I'm announcing the first official release of JfrUnit today! JfrUnit is an extension to JUnit which allows you to assert JDK Flight Recorder events in your unit tests. This capability opens up a number of interesting use cases in the field of testing JVM-based applications: You can use JfrUnit to ensure your application produces the custom JFR events you expect it to emit You can use JfrUnit to identify potential performance regressions of your application by means of tracking JFR events e.g. for garbage collection, memory allocation and network I/O You can use JfrUnit together with JMC Agent for whitebox tests of your application, ensuring specific methods are invoked with the expected parameters and return values

## Towards Continuous Performance Regression Testing

DevFeed: [Towards Continuous Performance Regression Testing](<https://devfeed.tech/articles/towards-continuous-performance-regression-testing-18884.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/towards-continuous-performance-regression-testing/>)

Published: 2020-12-16T16:45:00Z

Content type: tutorial

Language: en

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

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [ci](<https://devfeed.tech/tags/ci.md>), [database](<https://devfeed.tech/tags/database.md>), [functional](<https://devfeed.tech/tags/functional.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [latency](<https://devfeed.tech/tags/latency.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [orm](<https://devfeed.tech/tags/orm.md>), [performance](<https://devfeed.tech/tags/performance.md>), [regression](<https://devfeed.tech/tags/regression.md>), [sql](<https://devfeed.tech/tags/sql.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

This article introduces JfrUnit, an open-source project for continuous performance regression testing. It explains how JfrUnit asserts expected values for indirect performance metrics such as memory allocation, database I/O, and executed SQL statements, using events from JDK Flight Recorder. These assertions can identify potential regressions in standard JUnit tests without relying on wall-clock time or production-like hardware.

### Source excerpt

Table of Contents Getting Started With JfrUnit Case Study 1: Spotting Increased Memory Allocation Case Study 2: Identifying Increased I/O With the Database Discussion Summary and Outlook Functional unit and integration tests are a standard tool of any software development organization, helping not only to ensure correctness of newly implemented code, but also to identify regressions -- bugs in existing functionality introduced by a code change. The situation looks different though when it comes to regressions related to non-functional requirements, in particular performance-related ones: How to detect increased response times in a web application? How to identify decreased throughput? These aspects are typically hard to test in an automated and reliable way in the development workflow, as they are dependent on the underlying hardware and the workload of an application. For instance assertions on the duration of specific requests of a web application typically cannot be run in a meaningful way on a developer laptop, which differs from the actual production hardware (ironically, nowadays both is an option, the developer laptop being less or more powerful than the actual production environment). When run in a virtualized or containerized CI environment, such tests are prone to severe measurement distortions due to concurrent load of other applications and jobs. This post introduces the JfrUnit open-source project, which offers a fresh angle to this topic by supporting assertions not on metrics like latency/throughput themselves, but on indirect metrics which may impact those. JfrUnit allows you define expected values for metrics such as memory allocation, database I/O, or number of executed SQL statements, for a given workload and asserts the actual metrics values -- which are obtained from JDK Flight Recorder events -- against these expected values. Starting off from a defined base line, future failures of such assertions are an indicator for potential performance regres

## Anonymous CompletableFuture threads with burstable pods

DevFeed: [Anonymous CompletableFuture threads with burstable pods](<https://devfeed.tech/articles/anonymous-completablefuture-threads-with-burstable-pods-26081.md>)

Original publisher: [Read original article](<https://blog.arkey.fr/2020/12/11/completablefuture-with-burstable-pods/>)

Author: brice.dutheil@gmail.com (Brice Dutheil)

Published: 2020-12-11T13:05:00Z

Content type: article

Language: en

Sources: [The Coffee Workshop](<https://devfeed.tech/sources/the-coffee-workshop.md>)

Topics: [threadpools](<https://devfeed.tech/topics/threadpools.md>), [multithreading](<https://devfeed.tech/topics/multithreading.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>)

Tags: [completablefuture](<https://devfeed.tech/tags/completablefuture.md>), [container](<https://devfeed.tech/tags/container.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [threads](<https://devfeed.tech/tags/threads.md>)

### AI overview

A JFR recording showed many short-lived anonymous threads, whose allocation events helped trace them to CompletableFuture tasks using the default ForkJoinPool. The excerpt says that when the JVM sees no more than one processor, the pool may create a new thread for each task; a Kubernetes CPU setting of two is mentioned, but the excerpt does not establish what processor count the JVM saw in that case. It identifies two possible fixes: pass an executor to the code or configure the default pool's parallelism. The text ends before detailing the configuration method.

### Source excerpt

It all started when opening a JFR recording, I noticed a very large and growing number of very short lived threads.

## Introducing JmFrX: A Bridge From JMX to JDK Flight Recorder

DevFeed: [Introducing JmFrX: A Bridge From JMX to JDK Flight Recorder](<https://devfeed.tech/articles/introducing-jmfrx-a-bridge-from-jmx-to-jdk-flight-recorder-18836.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/introducing-jmfrx-a-bridge-from-jmx-to-jdk-flight-recorder/>)

Published: 2020-08-18T15:30: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>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [blog-post](<https://devfeed.tech/tags/blog-post.md>), [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>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [tool](<https://devfeed.tech/tags/tool.md>)

### AI overview

This article introduces JmFrX, an open-source utility that periodically captures JMX MBean attributes into JDK Flight Recorder files. The recordings can be analyzed with JDK Mission Control, used to track values over time, examined offline, or exported as live data streams through the JFR event streaming API.

### Source excerpt

Table of Contents Why JmFrX? How To Use JmFrX Customizing Event Formats How It Works Takeaways I'm excited to share the news about an open-source utility I've been working on lately: JmFrX, a tool for capturing JMX data with JDK Flight Recorder. When using JMX (Java Management Extensions), The Java platform's standard for monitoring and managing applications, JmFrX allows you to periodically record the attributes from any JMX MBean into JDK Flight Recorder (JFR) files, which you then can analyse using JDK Mission Control (JMC).

## Using JDK FlightRecorder and JDK Mission Control

DevFeed: [Using JDK FlightRecorder and JDK Mission Control](<https://devfeed.tech/articles/using-jdk-flightrecorder-and-jdk-mission-control-26076.md>)

Original publisher: [Read original article](<https://blog.arkey.fr/2020/06/28/using-jdk-flight-recorder-and-jdk-mission-control/>)

Author: brice.dutheil@gmail.com (Brice Dutheil)

Published: 2020-06-28T21:54:58Z

Content type: tutorial

Language: en

Sources: [The Coffee Workshop](<https://devfeed.tech/sources/the-coffee-workshop.md>)

Topics: [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [Java](<https://devfeed.tech/topics/java.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Security Information and Event Management (SIEM)](<https://devfeed.tech/topics/siem-security.md>)

Tags: [guides](<https://devfeed.tech/tags/guides.md>), [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>), [logging](<https://devfeed.tech/tags/logging.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [tool](<https://devfeed.tech/tags/tool.md>), [traces](<https://devfeed.tech/tags/traces.md>)

### AI overview

This tutorial introduces JDK Flight Recorder as a production-capable JVM profiler and explains how it records JVM events. It also discusses JDK Mission Control for analyzing those events, runtime recordings, JFR commands, recording limits, and XML-based configurations.

### Source excerpt

JDK Flight Recorder, the profiler you can use in production, continuously. Flight Recorder has been available before in the JDK, e.g. it shipped as part of the JDK 8, but to use it, it demanded a to set specific commercial VM flags to unlock FlightRecorder, this is not anymore necessary with Java 11.

## Monitoring REST APIs with Custom JDK Flight Recorder Events

DevFeed: [Monitoring REST APIs with Custom JDK Flight Recorder Events](<https://devfeed.tech/articles/monitoring-rest-apis-with-custom-jdk-flight-recorder-events-18864.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/rest-api-monitoring-with-custom-jdk-flight-recorder-events/>)

Published: 2020-01-29T14:30: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>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Java](<https://devfeed.tech/topics/java.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [Prometheus](<https://devfeed.tech/topics/prometheus.md>)

Tags: [grafana](<https://devfeed.tech/tags/grafana.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [prometheus](<https://devfeed.tech/tags/prometheus.md>), [rest](<https://devfeed.tech/tags/rest.md>), [rest-apis](<https://devfeed.tech/tags/rest-apis.md>)

### AI overview

This tutorial explains how custom JDK Flight Recorder events can monitor a REST API, including tracking request counts and identifying long-running requests. It also describes using the JFR Event Streaming API to export live events for monitoring and alerting with Prometheus and Grafana.

### Source excerpt

Table of Contents Custom Flight Recorder Events Creating JFR Recordings Event Settings JFR Event Streaming MicroProfile Metrics Summary and Related Work The JDK Flight Recorder (JFR) is an invaluable tool for gaining deep insights into the performance characteristics of Java applications. Open-sourced in JDK 11, JFR provides a low-overhead framework for collecting events from Java applications, the JVM and the operating system. In this blog post we're going to explore how custom, application-specific JFR events can be used to monitor a REST API, allowing to track request counts, identify long-running requests and more. We'll also discuss how the JFR Event Streaming API new in Java 14 can be used to export live events, making them available for monitoring and alerting via tools such as Prometheus and Grafana.