sbt-jmh | sbt plugin for JMH
kandi X-RAY | sbt-jmh Summary
kandi X-RAY | sbt-jmh Summary
JMH is a Java harness for building, running, and analysing nano/micro/milli/macro benchmarks written in Java and other languages targeting the JVM. Please read [nanotrusting nanotime] and other blog posts on micro-benchmarking (or why most benchmarks are wrong) and make sure your benchmark is valid, before you set out to implement your benchmarks.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sbt-jmh
sbt-jmh Key Features
sbt-jmh Examples and Code Snippets
Community Discussions
Trending Discussions on sbt-jmh
QUESTION
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 ?
...ANSWER
Answered 2021-Nov-16 at 07:09JFR was a commercial feature in Oracle Java up to Java 1.8 that needed to be specially enabled (using -XX:+UnlockCommercialFeatures
).
With Java 11 and later it is no longer a commercial feature so you don't need this flag.
Actually the linked article states:
JFR Packaging Differences
Oracle JDK 11 emits a warning when using the-XX:+UnlockCommercialFeatures
option, whereas OpenJDK doesn’t recognize this option and reports an error.
And the example below that the author shows doesn't use the -XX:+UnlockCommercialFeatures
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sbt-jmh
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page