HotSpot source: command line arguments
By sundararajan on Oct 30, 2006
You may have read Joseph D. Mocker's excellent collection of JVM Options - a compilation of all the JVM options for various versions of the JVM on primarily SPARC/Solaris Platform. If you have downloaded JDK source from http://jdk6.dev.java.net, you may want to look at these files:
- $JDK/hotspot/src/share/vm/runtime/globals.hpp (and globals.cpp)
- $JDK/hotspot/src/share/vm/runtime/arguments.hpp (and arguments.cpp)
Please note that I am not suggesting this for tuning JVM on deployment - you may want to read No Tuning Required: Java SE Out-of-Box Vs. Tuned Performance.
You may be curious to know what options are available in product, debug modes of the HotSpot JVM. In particular, you may want to see what diagnostic/debug options which may help in debugging/troubleshooting.
These files have HotSpot command line flags (specified by -XX) and argument parsing code (in arguments.cpp). Also, you may want to look at Java launcher source at [some options by "java" are implemented by launcher sources (eg. -client, -server and -J-XXX) and many other options are implemented by hotspot JVM sources]
The launcher sources help in better understanding of JNI Invocation API as well.