首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

jdk6实用的jvm启动参数收集

2012-08-28 
jdk6适用的jvm启动参数收集http://hg.openjdk.java.net/jdk6/jdk6/hotspot/raw-file/tip/src/share/vm/run

jdk6适用的jvm启动参数收集

http://hg.openjdk.java.net/jdk6/jdk6/hotspot/raw-file/tip/src/share/vm/runtime/globals.hpp

?

1)-XX:+PrintCommandLineFlags

显示出VM初始化完毕后所有跟最初的默认值不同的参数及它们的值。

?

2)-XX:+PrintFlagsFinal?

显示所有可设置的参数及它们的值。

-XX:+UnlockDiagnosticVMOptions

包括diagnostic类参数

-XX:+UnlockExperimentalVMOptions

? ? ? ?包括experimental类参数

?

3)-XX:+PrintFlagsInitial

显示在处理参数之前所有可设置的参数及它们的值,然后直接退出程序。

?

4)-XX:+UseCompressedOops?

Enables the use of compressed pointers (object references represented as 32 bit offsets instead of 64-bit pointers) for optimized 64-bit performance with Java heap sizes less than 32gb.

?

5)-XX:+DisableExplicitGC

让System.gc(引发一次stop-the-world的full GC)调用失效。

?

6)-XX:-UseCounterDecay

是否对方法调用次数的计数器做“衰减”,方法调用次数决定其是否被jit编译优化。

?

7)-XX:+PrintCompilation

输出方法jit编译优化信息。

?

8)-XX:-UseAdaptiveSizePolicyWithSystemGC

?

9)-XX:+ExplicitGCInvokesConcurrent?

显式GC,System.gc()时候调用cms gc。(effective only when UseConcMarkSweepGC)

10)-XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses

显式GC,System.gc()时候调用cms gc,并且unloads classes。(effective only when UseConcMarkSweepGC)

11)-XX:HeapDumpPath

堆dump文件保存路径

12)-XX:+HeapDumpOnOutOfMemoryError

在发生OutOfMemoryError的时候让JVM自动生成一个heap dump出来

?

13)-XX:-HeapDumpBeforeFullGC?

在stop-world full gc之前heap dump

14)-XX:-HeapDumpAfterFullGC

在stop-world full gc之后heap dump

15)-XX:MaxTenuringThreshold

最大新生代对象移入老生代的阈值

.

.

.


热点排行