이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 1. Introduction to JDK Flight Recorder


JDK Flight Recorder (JFR) is a low overhead framework for monitoring and profiling Java applications. For more information, see JEP 328: Flight Recorder.

You can collect data from events originating within the JVM and the application code. Data is then written in memory. At first, to thread-local buffer and then promoted to fixed-size global ring buffer before being flushed to JFR files (*.jfr) on the disk. Other applications can consume these files for analysis. For example, the JDK Mission Control (JMC) tool.

1.1. JDK Flight Recorder (JFR) components

You can use JFR functionality to observe events that run inside a JVM, and then create recordings from data collected from these observed events.

The following list details key JFR functionality:

Recordings
You can manage system recordings. Each recording has a unique configuration. You can start or stop the recording, or save it to disk on demand.
Events

You can use events or custom events to trace your Java application’s data and metadata, and then save the data and metadata from either event type in a JFR file. You can use various tools, such as Java Mission Control (JMC),jcmd, and so on, to view and analyze information stored in a JFR file.

The Java Virtual Machine (JVM) has many pre-existing events that are continuously added. An API is available for users to inject custom events into their applications.

You can enable or disable any event when recording to minimize overhead by supplying event configurations. These configurations take the form of xml documents and are called JFR profiles (*.jfc). The Red Hat build of OpenJDK comes with the following two profiles for the most common set of use cases:

  • default: The default profile is a low-overhead configuration that is safe for continuous use in production environments. Typically, overhead is less than 1%.
  • profile: The profile profile is a low-overhead configuration that is ideal for profiling. Typically, overhead is less than 2%.

1.2. Benefits of using JDK Flight Recorder

Some of the key benefits of using JDK Flight Recorder (JFR) are:

  • JFR allows recording on a running JVM. It is ideal to use JFR in production environments where it is difficult to restart or rebuild the application.
  • JFR allows for the definition of custom events and metrics to monitor.
  • JFR is built into the JVM to achieve the minimum performance overhead (around 1%).
  • JFR uses coherent data modeling to provide better cross-referencing of events and filtering of data.
  • JFR allows for monitoring of third-party applications using APIs.
  • JFR helps in reducing the cost of ownership by:

    • Spending less time diagnosing.
    • Aiding in troubleshooting problems.
  • JFR reduces operating costs and business interruptions by:

    • Providing faster resolution time.
    • Identifying the performance issues which helps in improving system efficiency.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat, Inc.