The Java agent uses Java Flight Recorder (JFR) to collect high fidelity JVM data for Real-time profiling.
Configure real-time profiling in the jfr section in the agent YAML. These configuration options can be overridden with system properties prefixed by newrelic.config.jfr. or with environment variables prefixed with NEW_RELIC_JFR_.
Type
Boolean
Default
false
Set to true to enable Real-time profiling with JFR. This setting will apply dynamically and does not require a JVM restart.
Important
Real-time profiling with JFR is on by default in Java agent version 7.1.0. If you are on any other agent version 7.0.0 or higher, you can turn on JFR by changing the value to true.
Type
Boolean
Default
false
Set to true to enable audit logging which will display all JFR metrics and events in each harvest batch. Audit logging is extremely verbose and should only be used for troubleshooting purposes.
The maximum number of JFR events stored in the agent's memory queue. Increasing this value can help prevent gaps in JFR data, but it will also increase the agent's resource consumption. If the queue is too large, data may be dropped if backend pipeline limits are exceeded. For more information, refer to event API ingest limits.