java永控制台_Java控制台参数详解

Java控制台中的-X系列参数:

Non-standard, or -X, command line options are options that are exclusive to Oracle JRockit JVM that change the behavior of JRockit JVM to better suit the needs of different Java applications. These options are all preceded by -X and will not work on other JVMs (conversely, the non-standard options used by other JVMs won't work with JRockit JVM).

非标准化的 或者 -X 命令行参数是Oracle JRockit JVM独有的。这些参数都以-X开头,并且只在JRockit JVM中有效。

Note: Since these options are non-standard, they are subject to change at any time.

注意:既然这些参数都是非表转化的,那么就有可能随时发生更改!

在Java命令行中,执行

java -X

可以查看所有的-X参数

C:\Users\Admin>java -X

-Xmixed           mixed mode execution (default)

-Xint             interpreted mode execution only

-Xbootclasspath:

set search path for bootstrap classes and resources

-Xbootclasspath/a:

append to end of bootstrap class path

-Xbootclasspath/p:

prepend in front of bootstrap class path

-Xdiag            show additional diagnostic messages

-Xnoclassgc       disable class garbage collection

-Xincgc           enable incremental garbage collection

-Xloggc:    log GC status to a file with time stamps

-Xbatch           disable background compilation

-Xms        set initial Java heap size

-Xmx        set maximum Java heap size

-Xss        set java thread stack size

-Xprof            output cpu profiling data

-Xfuture          enable strictest checks, anticipating future default

-Xrs              reduce use of OS signals by Java/VM (see documentation)

-Xcheck:jni       perform additional checks for JNI functions

-Xshare:off       do not attempt to use shared class data

-Xshare:auto      use shared class data if possible (default)

-Xshare:on        require using shared class data, otherwise fail.

-XshowSettings    show all settings and continue

-XshowSettings:all

show all settings and continue

-XshowSettings:vm show all vm related settings and continue

-XshowSettings:properties

show all property settings and continue

-XshowSettings:locale

show all locale related settings and continue

The -X options are non-standard and subject to change without notice.

参考地址(英文):

PDF版本的参考手册下载(英文版):

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值