Created
December 8, 2022 22:08
-
-
Save Frontear/5107471a33301c9abdc29700be324e4a to your computer and use it in GitHub Desktop.
A command to find all the JVM flags for a respective JVM installation on a local system.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# -version is just a filler command so that we can execute the process. | |
java -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+PrintFlagsFinal -version > flags.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To find out more about each flag, I highly encourage browsing the source for your JVM distribution (I use OpenJDK). https://github.com/openjdk/