JVM 参数详解

Behavioral Options 行为参数
Option and Default ValueDescription描述
-XX:-AllowUserSignalHandlersDo not complain if the application installs signal handlers. (Relevant to Solaris and Linux only.)允许用户在应用中捕捉信号 (只和Solaris和Linux有关)
-XX:AltStackSize=16384Alternate signal stack size (in Kbytes). (Relevant to Solaris only, removed from 5.0.)备用信号栈大小 (Kbytes)。(只Solaris,从5.0删除)
-XX:-DisableExplicitGCBy default calls to System.gc() are enabled (-XX:-DisableExplicitGC). Use -XX:+DisableExplicitGC to disable calls to System.gc(). Note that the JVM still performs garbage collection when necessary.禁止调用System.gc(), JVM 依然在必要时执行垃圾回收。
-XX:+FailOverToOldVerifierFail over to old verifier when the new type checker fails. (Introduced in 6.)当新的类型检查器失败时转移到旧的类型检查器上(从6.0开始引进)
-XX:+HandlePromotionFailureThe youngest generation collection does not require a guarantee of full promotion of all live objects. (Introduced in 1.4.2 update 11) [5.0 and earlier: false.]年轻代不担保完全提升活所有对象。(1.4.2 update 11引进)(5.0和更早版本是false)
-XX:+MaxFDLimitBump the number of file descriptors to max. (Relevant  to Solaris only.)文件描述符设置到最大(只Solaris)
-XX:PreBlockSpin=10Spin count variable for use with -XX:+UseSpinning. Controls the maximum spin iterations allowed before entering operating system thread synchronization code. (Introduced in 1.4.2.)控制多线程自旋锁优化的自旋次数 (1.4.2引进)
-XX:-RelaxAccessControlCheckRelax the access control checks in the verifier. (Introduced in 6.)在类校验里,放松访问控制检查(6引进)
-XX:+ScavengeBeforeFullGCDo young generation GC prior to a full GC. (Introduced in 1.4.1.)full GC之前先youngGC (1.4.1引进)
-XX:+UseAltSigsUse alternate signals instead of SIGUSR1 and SIGUSR2 for VM internal signals. (Introduced in 1.3.1 update 9, 1.4.1. Relevant to Solaris only.)为了防止与其他发送信号的应用程序冲突,允许使用候补信号替代 SIGUSR1和SIGUSR2。(1.3.1 update 9引进,1.4.1只Solaris)
-XX:+UseBoundThreadsBind user level threads to kernel threads. (Relevant to Solaris only.)用户级别线程绑定到核心线程(只Solaris)
-XX:-UseConcMarkSweepGCUse concurrent mark-sweep collection for the old generation. (Introduced in 1.4.1)老年代使用CMS收集(1.4.1引进)
-XX:+UseGCOverheadLimitUse a policy that limits the proportion of the VM's time that is spent in GC before an OutOfMemory error is thrown. (Introduced in 6.)限制GC的运行时间。如果GC耗时过长,就抛OOM。(6引进)
-XX:+UseLWPSynchronizationUse LWP-based instead of thread based synchronization. (Introduced in 1.4.0. Relevant to Solaris only.)使用轻量级进程(内核线程LWP-based)替换线程同步。( 1.4.0引进,只Solaris)
-XX:-UseParallelGCUse parallel garbage collection for scavenges. (Introduced in 1.4.1)策略为新生代使用并行清除,年老代使用单线程Mark-Sweep-Compact的垃圾收集器。 (1.4.1引进)
-XX:-UseParallelOldGCUse parallel garbage collection for the full collections. Enabling this option automatically sets -XX:+UseParallelGC. (Introduced in 5.0 update 6.)策略为老年代和新生代都使用并行清除的垃圾收集器。开启这个选项,自动开启-XX:+UseParallelGC (5+D20:D25.0 update 6引进)
-XX:-UseSerialGCUse serial garbage collection. (Introduced in 5.0.)使用串行垃圾收集. (5.0引进)
-XX:-UseSpinningEnable naive spinning on Java monitor before entering operating system thread synchronizaton code. (Relevant to 1.4.2 and 5.0 only.) [1.4.2, multi-processor Windows platforms: true]启用多线程自旋锁优化 (1.4.2和5.0需要手动启动) [1.4.2, 多处理器windows平台:true
-XX:+UseTLABUse thread-local object allocation (Introduced in 1.4.0, known as UseTLE prior to that.) [1.4.2 and earlier, x86 or with -client: false]启用线程本地缓存区(1.4.0引进,之前叫UseTLE) [1.4.2和更早, x86或者-client: false]
-XX:+UseSplitVerifierUse the new type checker with StackMapTable attributes. (Introduced in 5.0.)[5.0: false]使用StackMapTable属性新类型检查(5.0引进)[5.0: false]
-XX:+UseThreadPrioritiesUse native thread priorities.使用本地线程优先
-XX:+UseVMInterruptibleIOThread interrupt before or with EINTR for I/O operations results in OS_INTRPT. (Introduced in 6. Relevant to Solaris only.)在I/O进入时或之前线程中断,导致OS_INTRPT。6引进,只Solaris

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值