Posted by editor
on January 15, 2011 at 3:02 PM PST
While the HotSpot JVM provides developers with a powerful set of JVM options, the documentation that's provided for the options is, in the words of Zahid Qureshi, "criminally short and non-comprehensive." However, Zahid isn't one to simply complain and walk away...
While the HotSpot JVM provides developers with a powerful set of JVM options, the documentation that's provided for the options is, in the words of Zahid Qureshi, "criminally short and non-comprehensive." However, Zahid isn't one to simply complain and walk away. Instead, he took the time to thoroughly investigate the HotSpot JVM options, and he presents the results of his study and analysis in his recent blog post, "Inspecting HotSpot JVM Options."
Zahid notes that
The JVM options themselves can be controlled in a number of ways:
- via the command line on JVM startup.
- via JMX for certain options where this is allowed.
- indirectly via the command line by a super-option which then sets other options.
- automatically by the JVM. The JVM has ergonomic capability to detect features of the host and set options accordingly.
Using the first two methods we are explicitly setting options ourselves and can easily track what value each option has (true, false, 20, 100 etc).
Zahid goes on to describe and demonstrate the key options, talks about client versus server JVM analysis, and investigates the "super-option"
-XX:+AggressiveOpts, before concluding:
There is enormous scope for coarse and fine grained control of JVM behaviour. The option
-XX:+PrintFlagsFinal allows comprehensive reporting of the options and their values. The available options vary by build and JVM type (server or client). Recording and auditing this output is an important step in any Java benchmarking or continuous monitoring exercise. Oracle can surreptitiously enable options in new Java builds which may cause inexplicable changes in performance and behaviour of existing applications.
As Dustin Marx said in a recent blog post :
Inspecting HotSpot JVM Options is a great post for those wishing to understand better the options provided by Oracle's (formerly Sun's) HotSpot Java Virtual Machine .
On the Aquarium, Alexis Moussine-Pouchkine announces One more move : docs.sun.com -
The entire docs.sun.com content is being moved to Oracle systems (download.oracle.com) before it is eventually shut down. This is another consolidation move to standardize on Oracle practices and systems and remove any duplication. The content on docs.sun.com (DSC) was converted in December to the new format and has now been republished to the new home (full index still under construction, Oracle GlassFish Server 3.0.1 documentation is here )...
Stephen Chin discusses Visage Android