Following this post :
jfr is supported natively in openjdk 11
and it is confirmed by the features list of OpenJDK 11:
328: Flight Recorder
However, from this DZone article, about using JFR-linked option -XX:+UnlockCommercialFeatures
:
OpenJDK doesn’t recognize this option
And when I try for ex. with Gradle: ./gradlew clean -Dorg.gradle.jvmargs="-XX:+UnlockCommercialFeatures"
I get
Process command line: C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin\java.exe -XX:+UnlockCommercialFeatures (...)
Unrecognized VM option 'UnlockCommercialFeatures'
What am I missing here ?