From ca158939d508d538cac38c637e84f26093eef78c Mon Sep 17 00:00:00 2001 From: James Netherton Date: Fri, 8 Dec 2023 10:59:35 +0000 Subject: [PATCH] Switch to enabling JFR support with quarkus.native.monitoring config property --- docs/modules/ROOT/pages/reference/extensions/jfr.adoc | 4 ++-- extensions/jfr/runtime/src/main/doc/usage.adoc | 4 ++-- .../jfr/src/main/resources/application.properties | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/modules/ROOT/pages/reference/extensions/jfr.adoc b/docs/modules/ROOT/pages/reference/extensions/jfr.adoc index 5db2004beef9..ca0c3c9aed88 100644 --- a/docs/modules/ROOT/pages/reference/extensions/jfr.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/jfr.adoc @@ -75,11 +75,11 @@ $ ./my-application-runner -XX:+FlightRecorder -XX:StartFlightRecording=filename= [id="extensions-jfr-usage-flight-recording-in-native-mode"] === Flight recording in native mode -To build a native image with Java Flight Recorder support, it is mandatory to enable VM inspection via the following configuration property in `application.properties`. +To build a native image with Java Flight Recorder support, you must enable it via the following configuration property in `application.properties`. [source,properties] ---- -quarkus.native.enable-vm-inspection=true +quarkus.native.monitoring=jfr ---- diff --git a/extensions/jfr/runtime/src/main/doc/usage.adoc b/extensions/jfr/runtime/src/main/doc/usage.adoc index c3f002806b33..405a4599745c 100644 --- a/extensions/jfr/runtime/src/main/doc/usage.adoc +++ b/extensions/jfr/runtime/src/main/doc/usage.adoc @@ -25,9 +25,9 @@ $ ./my-application-runner -XX:+FlightRecorder -XX:StartFlightRecording=filename= === Flight recording in native mode -To build a native image with Java Flight Recorder support, it is mandatory to enable VM inspection via the following configuration property in `application.properties`. +To build a native image with Java Flight Recorder support, you must enable it via the following configuration property in `application.properties`. [source,properties] ---- -quarkus.native.enable-vm-inspection=true +quarkus.native.monitoring=jfr ---- diff --git a/integration-tests/jfr/src/main/resources/application.properties b/integration-tests/jfr/src/main/resources/application.properties index 715da7f0614e..780573804573 100644 --- a/integration-tests/jfr/src/main/resources/application.properties +++ b/integration-tests/jfr/src/main/resources/application.properties @@ -16,4 +16,4 @@ ## --------------------------------------------------------------------------- # Must enable VM inspection for JFR in native mode -quarkus.native.enable-vm-inspection=true +quarkus.native.monitoring=jfr