Skip to content

(0.49) Add check for JFR enablement - #20879

Merged
pshipton merged 1 commit into
eclipse-openj9:v0.49.0-releasefrom
tajila:jfr2
Jan 2, 2025
Merged

(0.49) Add check for JFR enablement#20879
pshipton merged 1 commit into
eclipse-openj9:v0.49.0-releasefrom
tajila:jfr2

Conversation

@tajila

@tajila tajila commented Jan 2, 2025

Copy link
Copy Markdown
Contributor

Currently, JFR is enabled by default on all platforms that support it, and it cannot be disabled. We have been using -XX:+FlightRecorder to indicate if the JVM should start with recording enabled. This is not consistent with the RI.

With this change -XX:[+|-]FlightRecorder toggles whether JFR is enabled. By default JFR will remain enabled, but we now have the ability to disable it. -XX:StartFlightRecording will be used to indicate that a recording should be begin at startup.

Backport of #20854

Currently, JFR is enabled by default on all platforms that support it,
and it cannot be disabled. We have been using `-XX:+FlightRecorder` to
indicate if the JVM should start with recording enabled. This is not
consistent with the RI.

With this change `-XX:[+|-]FlightRecorder` toggles whether JFR is enabled.
By default JFR will remain enabled, but we now have the ability to
disable it. `-XX:StartFlightRecording` will be used to indicate that a
recording should be begin at startup.

Signed-off-by: tajila <atobia@ca.ibm.com>
@tajila
tajila requested a review from pshipton January 2, 2025 16:27
@pshipton pshipton added the jfr label Jan 2, 2025
@pshipton
pshipton merged commit 0568735 into eclipse-openj9:v0.49.0-release Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants