'How can I run Java Flight Recorder in the Intellij Idea community development environment with OpenJDK 16

I am interesting to run Java Flight Recorder wiht Intellij Idea Community.

By path

  -> Run|Edit configuration

I have pointed the options:

-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording:filename="D:\!_git\tmp\core-java-perf\file.jfr"

But I don't find the file -> file.jfr;

enter image description here

Maybe someone knows how to work with Java Flight Recorder from the Intellij Idea community?



Solution 1:[1]

-XX:+UnlockCommercialFeatures 
-XX:+FlightRecorder 

It is deprecated.

enter image description here

enter image description here

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 skyho