JFR with Bundled OpenJDK

Sean Midkiff January 4, 2022

While running Jira using Oracle's Java I enabled JFR (Java Flight Recording) to help investigate issues. I decided to switch over to the bundled OpenJDK version with Jira but cannot seem to get flight recording to start. 

Has anybody been able to successfully get JFR to start with Jira using the bundled OpenJDK? If so, can you provide an example of your JVM arguments. 

1 answer

1 accepted

0 votes
Answer accepted
Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 7, 2022

Hi @Sean Midkiff

Usually, you may try the following JVM arguments -

-XX:+HeapDumpOnOutOfMemoryError -XX:StartFlightRecording=disk=true,maxsize=10G,maxage=1h,settings=profile,path-to-gc-roots=true -XX:FlightRecorderOptions=repository=/path/to/jfr/files

Hope it helps! 

Sean Midkiff January 10, 2022

That did help! I think the part that I was getting caught on was the FlightRecorderOptions, I was putting the repository under the StartFlightRecording section. 

Thank you! 

Like Artur Moura likes this
Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2022

Awesome! Thanks for sharing your feedback! 

Suggest an answer

Log in or Sign up to answer