读书人

【转】JVM翻阅:command line argumen

发布时间: 2012-09-29 10:30:01 作者: rapoo

【转】JVM阅读:command line arguments

HotSpot source: command line arguments?

?

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]

$JDK/j2se/src/share/back/bin/java.h$JDK/j2se/src/share/back/bin/java.c

The launcher sources help in better understanding of?JNI Invocation API?as well.

?

A. Sundararajan's Weblog?

A. Sundararajan's Weblog -- sundararajan

读书人网 >移动开发

热点推荐