I want to run a java application with JFR enabled. When I start my application as below java -XX:+UnlockCommercialFeatures -XX:StartFlightRecording
I get following erro
No it does not. As per the release notes for openjdk8u262, it is supported in OpenJDK 8 update 262.
New features - JDK-8223147: JFR Backport