`
king523103
  • 浏览: 8323 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

【转】JVM阅读:command line arguments

    博客分类:
  • JVM
 
阅读更多

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics