To get all the options you can set on a JVM:
java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version
I use SDKMan to install and manage my JDK on macOS. It also allows me to manage a few other framework and tools like Kotlin, Spring Boot and Spark.