JVM 參數詳解

Behavioral Options 行爲參數
Option and Default Value Description 描述
-XX:-AllowUserSignalHandlers Do not complain if the application installs signal handlers. (Relevant to Solaris and Linux only.) 允許用戶在應用中捕捉信號 (只和Solaris和Linux有關)
-XX:AltStackSize=16384 Alternate signal stack size (in Kbytes). (Relevant to Solaris only, removed from 5.0.) 備用信號棧大小 (Kbytes)。(只Solaris,從5.0刪除)
-XX:-DisableExplicitGC By 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:+FailOverToOldVerifier Fail over to old verifier when the new type checker fails. (Introduced in 6.) 當新的類型檢查器失敗時轉移到舊的類型檢查器上(從6.0開始引進)
-XX:+HandlePromotionFailure The 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:+MaxFDLimit Bump the number of file descriptors to max. (Relevant  to Solaris only.) 文件描述符設置到最大(只Solaris)
-XX:PreBlockSpin=10 Spin 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:-RelaxAccessControlCheck Relax the access control checks in the verifier. (Introduced in 6.) 在類校驗裏,放鬆訪問控制檢查(6引進)
-XX:+ScavengeBeforeFullGC Do young generation GC prior to a full GC. (Introduced in 1.4.1.) full GC之前先youngGC (1.4.1引進)
-XX:+UseAltSigs Use 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:+UseBoundThreads Bind user level threads to kernel threads. (Relevant to Solaris only.) 用戶級別線程綁定到核心線程(只Solaris)
-XX:-UseConcMarkSweepGC Use concurrent mark-sweep collection for the old generation. (Introduced in 1.4.1) 老年代使用CMS收集(1.4.1引進)
-XX:+UseGCOverheadLimit Use 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:+UseLWPSynchronization Use LWP-based instead of thread based synchronization. (Introduced in 1.4.0. Relevant to Solaris only.) 使用輕量級進程(內核線程LWP-based)替換線程同步。( 1.4.0引進,只Solaris)
-XX:-UseParallelGC Use parallel garbage collection for scavenges. (Introduced in 1.4.1) 策略爲新生代使用並行清除,年老代使用單線程Mark-Sweep-Compact的垃圾收集器。 (1.4.1引進)
-XX:-UseParallelOldGC Use 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:-UseSerialGC Use serial garbage collection. (Introduced in 5.0.) 使用串行垃圾收集. (5.0引進)
-XX:-UseSpinning Enable 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:+UseTLAB Use 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:+UseSplitVerifier Use the new type checker with StackMapTable attributes. (Introduced in 5.0.)[5.0: false] 使用StackMapTable屬性新類型檢查(5.0引進)[5.0: false]
-XX:+UseThreadPriorities Use native thread priorities. 使用本地線程優先
-XX:+UseVMInterruptibleIO Thread 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章