Know/Java

A Collection of JVM Options

Marine™ 2006. 1. 26. 11:34
반응형
출처: http://blogs.sun.com/roller/resources/watt/jvm-options-list.html

[HTML]







A Collection of JVM Options


compiled by: Joseph D. Mocker (Sun Microsystems, Inc.)


revision: 13.Dec.2005



This document is a compilation of all the JVM options for various versions of the JVM on primarily SPARC/Solaris Platform. The descriptions for each option are taken mostly verbatim from the reference documents.




The JavaTM HotSpot VM Options page makes some good points regarding the different types of options, which should be followed when reading this document as well. To paraphrase:



  • Standard options recognized by the Java HotSpot VM are described on the Java Application Launcher reference pages.


  • Options that begin with -X are non-standard (not guaranteed to be supported on all VM implementations), and are subject to change without notice in subsequent releases of the Java 2 SDK.


  • Because the -XX options have specific system requirements for correct operation and may require privileged access to system configuration parameters, they are not recommended for casual use. These options are also subject to change without notice.







Please submit any comments, corrections, additions to jvm-options-list@sun.com.





Caveats: I am not associated with any Java Platform development group, I simply put this list together from the various reference sources I could find and without referring to any source code. I have done my best to ensure the options are valid for representative JVMs, however I have not tested every version of every JVM so it is quite possible that options may not be valid in all cases.

































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































OptionType1.3.11.4.01.4.11.4.21.5.0Description
-clientboolYYYYYUse Client HotSpot VM. Must be first option.
-serverboolYYYYYUse Server HotSpot VM. Must be first option.
-verbose[:class|gc|jni]boolYYYYYenable output of various pieces of the VM. specifying options twice may produce more detailed output.
-cppathYYYYYset search path for application classes and resources
-classpathpathYYYYYset search path for application classes and resources
-versionboolYYYYYprint product version and exit
-showversionboolYYYYYprint product version and continue
-fullversionboolYYYYYprint full java version and exit
-d32bool YYYYuse a 32-bit data model if available
-d64bool YYYYuse a 64-bit data model if available
-ea[:packagename...|:classname]list YYYYenable assertions
-enableassertions[:packagename...|:classname]list YYYYenable assertions
-da[:packagename...|:classname]list YYYYdisable assertions
-disableassertions[:packagename...|:classname]list YYYYdisable assertions
-esabool YYYYenable system assertions
-enablesystemassertionsbool YYYYenable system assertions
-dsabool YYYYdisable system assertions
-disablesystemassertionsbool YYYYdisable system assertions
-Dname=valuenvYYYYYset a system property
-jre-restrict-searchbool    Yinclude user private JREs in the version search
-jre-no-restrict-searchbool    Yexclude user private JREs in the version search
-XtboolOOOOOturn on instruction tracing
-XtmboolOOOOOturn on method tracing
-Xbootclasspath[/a|/p]:<path>listYYYYYset, append to, or prepend to boot class path
-XdebugboolYYYYYenable remote debugging
-XfutureboolYYYYYenable strictest checks, anticipating future default
-Xcheck:jniboolYYYYYperform additional checks for JNI functions
-XnoclassgcboolYYYYYdisable class garbage collection
-Xss<size>sizeYYYYYset maximum native stack size for any thread
-Xoss<size>sizeYYYYYset maximum Java stack size for any thread. Note: This option is useless with HotSpot as HotSpot doesn't have separate native and Java stacks.
-Xms<size>sizeYYYYYset initial Java heap size
-Xmx<size>sizeYYYYYset maximum Java heap size
-Xmn<size>size YYYYSize of young generation
-XrsboolYYYYYreduce the use of OS signals
-Xrunhprof[:help]|[:option=value, ...]listYY YYperform heap or cpu profiling
-Xmaxjitcodesize<size>sizeYYYYYset the maximum size (in bytes) for the JIT code area
-XsqnopauseboolYYYYYdo not pause for user interaction on SIGQUIT
-XoptimizeboolYYYYYUse optimizing JIT compiler (SPARC only). Replaced by -server in later VMs
-XmixedboolYYYYY mixed mode execution (default)
-XintboolYYYYYinterpreted mode execution only
-XincgcboolYYYYYIncremental GC
-Xconcgcbool  YYYConcurrent GC. Replaced by -XX:+UseConcMarkSweepGC (available beginning with J2SE 1.4.1)
-XprofboolYYYYYPrecursor to -Xrunprof.
-XaprofpathYYYYYSimple allocation profiler. unstable. debug only.
-Xloggc:<file>path YYYYLog garbage collection actions to a specified file.
-XcompboolYYYYYForces HotSpot to compile 100% of the code with maximum optimization.
-XbatchboolYYYYYForces HotSpot to compile methods in the foreground. Normally method compilation is moved from the foreground to a background process if they take long. This allows allows the interpreted version to continue to run until the compiled version is complete. This option prevents background compiling.
-XconcurrentioboolYYYYYThe main feature turned on with -Xconcurrentio is to use LWP based synchronization instead of thread based synchronization. We have found certain applications to speed up by over 40%. In 1.4, LWP based synchronization is the default, but -Xconcurrentio can still help since it turns on some other internal options.
-Xgenconfigbool     1.2 option only
-XverifyheapboolOOOOOVerify heap integrity. Replaced by -XX:+VerifyBeforeGC -XX:+VerifyAfterGC -XX:+VerifyTLE (-XX:+VerifyTLAB in J2SE 1.4) -XX:+VerifyBeforeScavenge -XX:+VerifyAfterScavenge (all debug only)
-XX:+PrintHeapUsageOverTimebool     Print heap usage and capacity with timestamps
 

-XX:+PrintInliningbool     Print message about inlined methods (debug only)
 

-XX:+DontYieldALotIntervalbool     Interval in milliseconds between yields. (debug only)
 

-XX:+VerifyBeforeGCbool      
 

-XX:+VerifyAfterGCbool      
 

-XX:+VerifyTLEbool      
 

-XX:+VerifyTLABbool   Y  
 

-XX:+VerifyBeforeScavengebool      
 

-XX:+VerifyAfterScavengebool      
 

-XX:+AggressiveHeapboolYYYYYThis option instructs the JVM to push memory use to the limit: the overall heap is more than 3850MB, the allocation area of each thread is 256K, the memory management policy defers collection as long as possible, and (beginning with J2SE 1.3.1_02) some GC activity is done in parallel.
 

-XX:AdaptivePermSizeWeight=<value>uintx  YYY 
-XX:AdaptiveSizeDecrementScaleFactor=<value>uintx    Y 
-XX:AdaptiveSizePolicyCollectionCostMargin=<value>uintx    Y 
-XX:AdaptiveSizePolicyFootprintThreshold=<value>uintx    Y 
-XX:AdaptiveSizePolicyInitializingSteps=<value>uintx    Y 
-XX:AdaptiveSizePolicyWeight=<value>uintx  YYY 
-XX:AdaptiveSizeThroughPutPolicy=<value>uintx    Y 
-XX:AdaptiveTimeWeight=<value>uintx  YYY 
-XX:+AdjustConcurrencyboolYYYYY 
 

-XX:AliasLevel=<value>intxYYYYY 
-XX:+AllowUserSignalHandlersboolYYYYYDo not complain if the application installs signal handlers (Solaris Only)
 

-XX:AltStackSize=<value>intxYYYY Alternate signal stack size (in Kbytes, Solaris Only)
 

-XX:+AlwaysCompileLoopMethodsboolYYYYY 
-XX:+AlwaysTenurebool  YYY 
-XX:AppendRatio=<value>intx    Y 
-XX:+BackgroundCompilationboolYYYYYEnables or disables JIT compilation in the background. When enabled, interpreted methods are still executed until background compilation is complete.
 

-XX:BaseFootPrintEstimate=<value>uintx  YYY 
-XX:+BindGCTaskThreadsToCPUsbool  YYY 
-XX:+BindScavengeThreadsboolY     
-XX:+BlockOffsetArrayUseUnallocatedBlockbool  YYY 
-XX:+BytecodeVerificationLocalboolYYYYY 
 

-XX:+BytecodeVerificationRemoteboolYYYYY 
 

-XX:CICompilerCount=<value>intxYYYYY 
 

-XX:+CICompilerCountPerCPUbool   YY 
-XX:+CIDynamicCompilePriorityboolYYY   
-XX:+CIMaxPrioritybool YY   
-XX:+CITimebool YYYYTime spent in JIT Compiler
 

-XX:CMSAbortablePrecleanMinWorkPerIteration=<value>uintx    Y 
-XX:CMSAbortablePrecleanWaitMillis=<value>intx    Y 
-XX:CMSBitMapYieldQuantum=<value>uintx   YY 
-XX:CMSBootstrapOccupancy=<value>intx    Y 
-XX:+CMSClassUnloadingEnabledbool  YYY
It has been reported that for 1.5, this apparently needs to be combined with -XX:+CMSPermGenSweepingEnabled in order to take effect.
 

-XX:+CMSCompactWhenClearAllSoftRefsbool  YYY 
-XX:CMSDictionaryChoice=<value>intx Y    
-XX:CMSExpAvgFactor=<value>uintx   YY 
-XX:CMSFullGCsBeforeCompaction=<value>uintx  YYYParameter that affects compaction of the old generation. If at least this number of concurrent collections has not succeeded between full collection, do a compaction on full collections. If 0, always do compactions on full collections when UseCMSCompactAtFullCollection is true
 

-XX:CMSIncrementalDutyCycle=<value>uintx   YY 
-XX:CMSIncrementalDutyCycleMin=<value>uintx   YY 
-XX:+CMSIncrementalModebool   YY 
-XX:CMSIncrementalOffset=<value>uintx   YY 
-XX:+CMSIncrementalPacingbool   YY 
-XX:CMSIncrementalSafetyFactor=<value>uintx   YY 
-XX:CMSIndexedFreeListReplenish=<value>uintx  YYY 
-XX:CMSInitiatingOccupancyFraction=<value>intx  YYYSets the threshold percentage of the used heap in the old generation at which the CMS collection takes place. For example, if set to 60, the CMS collector will be initiated every time the old generation becomes 60% full. By default, this threshold is calculated at run time, and the CMS collector might be triggered only when the old generation heap is about 80-90% full. Tuning this value can improve performance in many cases. Since the CMS collector does not suspend the mutators as it sweeps and frees memory, setting this switch can ensure that enough free memory is available for object promotion from the young generation as more data is allocated by the application. Sometimes, if this switch is not tuned, CMS collection might not be able to keep up and may fail, eventually triggering the default stop-the-world mark-compact collector. Available from J2SE1.4.1.
 

-XX:+CMSLoopWarnbool  YYY 
-XX:CMSMarkStackSize=<value>uintx YYYY 
-XX:CMSMarkStackSizeMax=<value>uintx    Y 
-XX:CMSMaxAbortablePrecleanLoops=<value>uintx    Y 
-XX:CMSMaxAbortablePrecleanTime=<value>intx    Y 
-XX:+CMSNoWarningbool YY   
 

-XX:+CMSParallelRemarkEnabledbool   YYAttempt to descrease remark pauses when used with -XX:+UseParNewGC.
 

-XX:+CMSPermGenPrecleaningEnabledbool  YYY 
-XX:+CMSPermGenSweepingEnabledbool  YYY
It has been reported that for 1.5, this apparently needs to be combined with -XX:+CMSClassUnloadingEnabled in order to take effect.
-XX:CMSPrecleanDenominator=<value>uintx YYYY 
-XX:CMSPrecleanIter=<value>uintx YYYY 
-XX:CMSPrecleanNumerator=<value>uintx YYYY 
-XX:+CMSPrecleanRefLists1bool    Y 
-XX:+CMSPrecleanRefLists2bool    Y 
-XX:CMSPrecleanThreshold=<value>uintx YYYY 
-XX:+CMSPrecleaningEnabledbool YYYY 
-XX:CMSRescanMultiple=<value>uintx   YY 
-XX:CMSRevisitStackSize=<value>uintx  YYY 
-XX:CMSSamplingGrain=<value>uintx    Y 
-XX:CMSScheduleRemarkEdenPenetration=<value>uintx    Y 
-XX:CMSScheduleRemarkEdenSizeThreshold=<value>uintx    Y 
-XX:CMSScheduleRemarkSamplingRatio=<value>uintx    Y 
-XX:CMSTriggerRatio=<value>intx  YYY 
-XX:CMSWaitDuration=<value>intx  YYY 
-XX:CMSWorkQueueDrainThreshold=<value>uintx   YY 
-XX:+CMSYieldbool YYYY 
-XX:CMSYieldQuantum=<value>intx YY   
-XX:+CheckJNICallsboolYYYYY 
-XX:+CheckUnsafeOpsbool YYYY 
-XX:+ClassUnloadingboolYYYYY 
-XX:+ClipInliningboolYYYYY 
-XX:CodeCacheExpansionSize=<value>intxYYYYY 
-XX:CodeCacheMinimumFreeSpace=<value>uintxYYYYY 
-XX:+CodeForP6boolY     
 

-XX:+CollectGen0Firstbool YYYY 
-XX:CompilationPolicyChoice=<value>intx YYYY 
-XX:CompilationRepeat=<value>intx   YY 
-XX:CompileCommand=<value>ccstr   YY 
-XX:CompileCommandFile=<value>ccstr   YYAllows you to specify alternate compiler command files. When used, this overrides the default behavior of the VM and the VM will NOT scan either the libjvm.sl directory or the current directory for a .hotspot_compiler file.
 

-XX:CompileOnly=<value>ccstr   YY 
-XX:CompileThreshold=<value>intxYYYYYnumber of method invocations/branches before (re-)compiling [10,000 -server, 1,500 -client]
 

-XX:+CompilerThreadHintNoPreemptbool   YY 
-XX:CompilerThreadPriority=<value>intx   YY 
-XX:CompilerThreadStackSize=<value>intxYYYYY 
-XX:+ConvertSleepToYieldboolYYYYY 
-XX:+ConvertYieldToSleepboolYYYYY 
-XX:DefaultInitialRAMFraction=<value>uintx    Y 
-XX:DefaultMaxRAM=<value>uintx    Y 
-XX:DefaultMaxRAMFraction=<value>uintx    Y 
-XX:DefaultThreadPriority=<value>intx   YY 
-XX:DefaultTickInterval=<value>intxYYYYY 
-XX:+DefaultUseSpecLockboolYY    
 

-XX:DeferThrSuspendLoopCount=<value>intxYYYYY 
-XX:DelayTickAdjustment=<value>intxYYYYY 
-XX:+DisableExplicitGCboolYYYYYDisable calls to System.gc(), JVM still performs garbage collection when necessary
 

-XX:+DisplayVMOutputbool   YY 
-XX:+DisplayVMOutputToStderrbool    Y 
-XX:+DisplayVMOutputToStdoutbool    Y 
-XX:+DontCompileHugeMethodsboolYYYYY 
-XX:+DontYieldALotboolYYYYY 
 

-XX:+DumpSharedSpacesbool    Y 
-XX:+EagerInitializationbool  Y   
 

-XX:+EagerXrunInitbool   YY 
-XX:+EnableJVMPIInstructionStartEventboolYYYYYEnables or disables the JVMPI event, JVMPI_EVENT_INSTRUCTION_START, which is sent when each instruction is issued by the interpreter
 

-XX:EventLogLength=<value>intxYYYYY 
 

-XX:+ExitOnBadLibThreadboolYYYYY 
-XX:+FastNMethodDependenciesbool  YYY 
 

-XX:+FastTLABRefillbool    Y 
-XX:+FasterSyncboolY     
-XX:+FilterSpuriousWakeupsboolYYYYY 
-XX:FloatCacheThreshold=<value>intx Y    
-XX:+ForceSharedSpacesbool    Y 
-XX:+ForceTimeHighResolutionboolYYYYY 
 

-XX:+ForceUseSpecLockboolYY    
 

-XX:FreqInlineSize=<value>intxYYYYYInteger specifying maximum number of bytecode instructions in a frequently executed method which gets inlined.
 

-XX:+FullSpeedJVMDIbool YYY  
 

-XX:GCHeapFreeLimit=<value>uintx  YYYUsed with -XX:+UseParallelGC to help prevent out-of-memory exceptions from occuring during garbage collection. This parameter specifies the lower limit on the amount of space freed during a garbage collection in per cent of the maximum heap (default is 5).
 

-XX:GCTaskTimeStampEntries=<value>uintx   YY 
-XX:GCTimeLimit=<value>uintx  YYYUsed with -XX:+UseParallelGC to help prevent out-of-memory exceptions from occuring during garbage collection. This parameter specifies the upper limit on the amount of time spent in garbage collection in per cent of total time (default is 90)
 

-XX:GCTimeRatio=<value>uintx    YThe ratio of GC time to application time, ratio being: 1 / (1 + nnn). For example -XX:GCTimeRatio=19 sets a goal of 5% of the total time for GC.
 

-XX:+HandlePromotionFailurebool    Y 
-XX:InitialCodeCacheSize=<value>intxYYYYY 
 

-XX:InitialSurvivorRatio=<value>uintx  YYY 
 

-XX:InitialTenuringThreshold=<value>intx  YYY 
-XX:+InlineboolY YYY 
 

-XX:InlineSmallCode=<value>intxY  Y  
-XX:+InlineUnreachedCallsboolYYYYY 
-XX:+InstallMethodsboolY     
-XX:InterpreterProfilePercentage=<value>intx YYYY 
-XX:+JVMPICheckGCCompatibilitybool    Y 
-XX:+JavaMonitorsInStackTraceboolYYYYYUseful to display more stack trace information about monitors
 

-XX:JavaPriority10_To_OSPriority=<value>intx   YY 
 

-XX:JavaPriority1_To_OSPriority=<value>intx   YY 
-XX:JavaPriority2_To_OSPriority=<value>intx   YY 
 

-XX:JavaPriority3_To_OSPriority=<value>intx   YY 
 

-XX:JavaPriority4_To_OSPriority=<value>intx   YY 
 

-XX:JavaPriority5_To_OSPriority=<value>intx   YY 
 

-XX:JavaPriority6_To_OSPriority=<value>intx   YY 
 

-XX:JavaPriority7_To_OSPriority=<value>intx   YY 
 

-XX:JavaPriority8_To_OSPriority=<value>intx   YY 
 

-XX:JavaPriority9_To_OSPriority=<value>intx   YY 
 

-XX:+LIRCacheLocalsbool YYYY 
 

-XX:+LIRFillDelaySlotsbool YYYY 
-XX:+LIROptimizebool Y    
-XX:+LIROptimizeDeleteOpsbool Y    
-XX:+LIROptimizeFloatsbool Y    
-XX:+LIROptimizeStackbool Y    
-XX:LargePageHeapSizeThreshold=<value>uintx    Y 
-XX:LargePageSizeInBytes=<value>uintx YYYY 
-XX:LocalCacheThreshold=<value>intx Y    
-XX:+LogCompilationbool   YY 
 

-XX:LogFile=<value>ccstr   YY 
 

-XX:+LogVMOutputbool   YY 
 

-XX:+ManagementServerbool    Y 
-XX:MarkSweepAlwaysCompactCount=<value>intxYYYYY 
 

-XX:MarkSweepDeadRatio=<value>intxYYYYY 
 

-XX:MaxDirectMemorySize=<value>intx   YY 
 

-XX:+MaxFDLimitboolYYYYYBump the number of file descriptors to max. (Solaris only)
 

-XX:MaxGCMinorPauseMillis=<value>uintx    Y 
-XX:MaxGCPauseMillis=<value>uintx    Y A hint to the virtual machine that pause times of nnn milliseconds or less are desired. The vm will adjust the java heap size and other gc-related parameters in an attempt to keep gc-induced pauses shorter than nnn milliseconds. Note that this may cause the vm to reduce overall throughput, and in some cases the vm will not be able to meet the desired pause time goal.
 

-XX:MaxHeapFreeRatio=<value>intxYYYYYheap free percentage (default 70)
 

-XX:MaxHeapSize=<value>uintxYYYYY 
-XX:MaxInlineLevel=<value>intxY  Y  
 

-XX:MaxInlineSize=<value>intxYYYYYInteger specifying maximum number of bytecode instructions in a method which gets inlined.
 

-XX:MaxJavaStackTraceDepth=<value>intxYYYYY 
 

-XX:MaxLiveObjectEvacuationRatio=<value>uintxYYYYY 
 

-XX:MaxNewSize=<value>uintxYYYYYMaximum size of new generation (in bytes) [32m sparc, 2.5m intel for 1.3, no limit for 1.4 as NewRatio is now used to determine MaxNewSize]
 

-XX:MaxPermHeapExpansion=<value>uintxYYYYY 
-XX:MaxPermSize=<value>uintxYYYYYSize of the Permanent Generation
 

-XX:MaxRecursiveInlineLevel=<value>intxY  Y  
-XX:MaxSurvivorShrinkRatio=<value>size_tY     
-XX:MaxTLABRatio=<value>uintx YYY  
-XX:MaxTLERatio=<value>Y     
-XX:MaxTenuringThreshold=<value>intxYYYYYThis switch determines how much the objects may age in the young generation before getting promoted to the older generation. The default value is 31. For a big enough young generation and "survivor space", the long-lived objects may be copied up to 31 times between the survivor spaces before they are finally promoted to the old generation.
 

-XX:MaxTickInterval=<value>intxYYYYY 
-XX:MinHeapDeltaBytes=<value>uintx YYYY 
-XX:MinHeapFreeRatio=<value>intxYYYYYheap free percentage (default 40)
 

-XX:MinOldHeapExpansion=<value>size_tY     
-XX:MinPermHeapExpansion=<value>uintxYYYYY 
-XX:MinSurvivorRatio=<value>uintx  YYY 
-XX:MinTLABSize=<value>uintx    Y 
-XX:MinTickInterval=<value>intxYYYYY 
-XX:NMethodSweepInterval=<value>Y     
-XX:NativeSynchronization=<value>ccstr    Y 
-XX:+NeverTenurebool  YYY 
-XX:NewRatio=<value>intxYYYYYRatio of new/old generation sizes [sparc -server: 2, sparc -client: 4 (1.3) 8 (1.3.1+), intel: 12]
-XX:NewSize=<value>uintxYYYYYDefault size of new generation (in bytes) [sparc 2.125M, intel: 640k]
 

-XX:NewSizeThreadIncrease=<value>uintxYYYYYAs more threads are created in a server application, the object allocation rate may increase with the number of active threads. The number of active threads is considered when adjusting the size of the young space, after a garbage collection. This flag specifies, in Kilobytes, the increment in young object space size, per active thread, to accomodate potentially faster object allocation rate.
 

-XX:NmethodSweepFraction=<value>intxYYYYY 
-XX:OldPLABSize=<value>uintx  YYY 
-XX:OldSize=<value>uintxYYYYY 
-XX:OnError=<value>ccstr    YThe Hotspot JVM includes a fatal error hander that can run a user-supplied script or program if the JVM aborts. A debug tool can also connect to a hung JVM or core file using the Hotspot JVM serviceability agent connector.
 

-XX:OnStackReplacePercentage=<value>intx YYYY 
-XX:OnStackReplaceThreshold=<value>Y     
-XX:+OptimizeSinglePrecisionbool Y    
-XX:+OverrideDefaultLibthreadboolYYYYY
On Solaris 9, this option is not necessary. On Solaris 8, J2SE? versions 1.3.1_02+ and 1.4+ require this option when using the alternate threads library. This option is not possible on pre-Solaris 8 operating environments.
 

-XX:OversizedCarThreshold=<value>uintx YYYY 
-XX:ParCMSPromoteBlocksToClaim=<value>intx  YYY 
-XX:ParGCArrayScanChunk=<value>intx    Y 
-XX:ParGCDesiredObjsFromOverflowList=<value>intx  YYY 
-XX:ParGCMaxArrayAsNormalObject=<value>intx  YY  
-XX:ParallelGCBufferWastePct=<value>intx  YYY 
-XX:ParallelGCG1AllocBufferSize=<value>intx  YYY 
-XX:ParallelGCOldGenAllocBufferSize=<value>intx  YYY 
-XX:+ParallelGCRetainPLABbool    Y 
-XX:ParallelGCTermSpinLoopMS=<value>intx  YYY 
-XX:ParallelGCThreads=<value>uintx  YYYThis switch sets the number of parallel GC threads that the JVM must run for performing garbage collection in the young generation. The default value of n is equal to the number of CPUs on the system. However, it has been observed that tweaking this number may improve performance in some cases. An example might be that of multiple instances of JVM running on a single multi-CPU system. In this case, the number of parallel GC threads for each JVM may need to be set to less than the number of CPUs by using this switch. Available from J2SE1.4.1.
 

-XX:ParallelGCToSpaceAllocBufferSize=<value>intx  YYY 
-XX:+ParallelGCVerbosebool  YYY 
-XX:+ParallelRefProcEnabledbool    Y 
-XX:+ParkTLEboolY     
-XX:+PassParametersInRegistersboolY     
-XX:+PerfAllowAtExitRegistrationbool  YYY 
-XX:+PerfBypassFileSystemCheckbool   YY 
-XX:PerfDataMemorySize=<value>intx  YYY 
 

-XX:PerfDataSamplingInterval=<value>intx  YYY 
-XX:+PerfDataSaveToFilebool  YYY 
 





-XX:+PerfDisableSharedMembool  YYY 
 

-XX:PerfMaxStringConstLength=<value>intx  YYY 
-XX:PermGenPadding=<value>uintx  YYY 
-XX:PermMarkSweepDeadRatio=<value>intxYYYYY 
 

-XX:PermSize=<value>uintxYYYYYInitial size of permanent generation
 

-XX:+PostSpinYieldboolYYYYY 
-XX:PreBlockSpin=<value>intxYYYYY 
-XX:PreInflateSpin=<value>intxYYYYY 
-XX:+PreSpinYieldboolYYYYY 
-XX:+PreferInterpreterNativeStubsboolYYYYY 
-XX:PrefetchCopyIntervalInBytes=<value>intxYYYYYPrefetch n bytes ahead for scavenge copy destination area. The default is 0. The ideal value may vary depending on the processor.
 

-XX:PrefetchFieldsAhead=<value>intx YYYY 
-XX:PrefetchScanIntervalInBytes=<value>intxYYYYYPrefetch n bytes ahead for scavenge scan area. The default is 0. The ideal value may vary depending on the processor.
 

-XX:PrefetchScavengeFieldsAhead=<value>Y    Prefetch the next n fields of objects during scavenge. The default is 0. The ideal value may vary depending on the processor.
 

-XX:+PreserveAllAnnotationsbool    Y 
-XX:PreserveMarkStackSize=<value>uintx    Y 
-XX:PretenureSizeThreshold=<value>uintx YYYYObjects size greater than this is directly allocated in the older generation
 

-XX:+PrintAdaptiveSizePolicybool  YYYPrints information about adaptive size policy
 

-XX:PrintCMSStatistics=<value>intx YYYYIf > 0, Print statistics about the concurrent collections. For example, the number of times the concurrent collection yield to a young generation collection and the number of cards precleaned
 

-XX:+PrintClassHistogrambool   YY
Prints the all the java heap objects, their instance count and total space they occupy in the heap. The only downside is that you need to issue a SIGQUIT (see -Xsqnopause) which will leave the app running but will dump all of this data to stdout. Very useful to assist in identifying memory problems for example on a production platform where an CPU intensive profiler cannot be used.
-XX:+PrintCommandLineFlagsbool    Y 
 

-XX:+PrintCompilationboolYYYYYtraces methods as compiled
 

-XX:PrintFLSCensus=<value>intx  YYYif > 0, print the populations of the CMS free lists
 

-XX:PrintFLSStatistics=<value>intx YYYYIf > 0, print statistics about the concurrent free lists. For example, a fragmentation parameter
 

-XX:+PrintGCboolYYYYY 
 

-XX:+PrintGCApplicationConcurrentTimebool   YYMeasure the amount of time the applications runs between collection pauses
 

-XX:+PrintGCApplicationStoppedTimebool   YYMeasure the length of the collection pauses.
 

-XX:+PrintGCDetailsbool YYYYGives some details about the GCs, such as size of the young and old generation before and after GCs, size of total heap, time it takes for a GC to happen in young and old generation, size of objects promoted at every GC etc.
 

-XX:+PrintGCTaskTimeStampsbool   YY 
-XX:+PrintGCTimeStampsbool YYYYPrints the times at which the GCs happen relative to the start of the application
 

-XX:+PrintHeapAtGCbool YYYYPrints detailed GC info including heap occupancy before and after GC.
 

-XX:+PrintJNIResolvingboolYYYYY 
-XX:+PrintParScavengeboolY     
-XX:+PrintScavengeboolY     
 

-XX:+PrintSharedSpacesbool    Y 
-XX:+PrintTLABbool YYYYtrace all the operations on TLAB's (Thread Allocation Buffers)
 

-XX:+PrintTLEboolY     
-XX:+PrintTenuringDistributionboolYYYYYGives the aging distribution of the allocated objects in the young generation. Tuning of -XX:NewSize, -XX:MaxNewSize, -XX:SurvivorRatio and -XX:MaxTenuringThreshold=0as described earlier, should be directed by the analysis of the output from this switch to determine that objects are not prematurely promoted to the old generation.
 

-XX:+PrintVMOptionsboolYYYYY 
 

-XX:ProcessDistributionStride=<value>uintx  YYY 
-XX:ProcessingToTenuringRatio=<value>intxYYYYY 
-XX:+ProfileIntervalsboolYYYYY 
 

-XX:ProfileIntervalsTicks=<value>intxYYYYY 
 

-XX:+ProfileVMboolYYYYY 
 

-XX:+ProfilerLightboolYYYYY 
-XX:+ProfilerPrintByteCodeStatisticsboolYYYYY 
 

-XX:+ProfilerRecordPCboolYYYYY 
 

-XX:PromotedPadding=<value>uintx    Y 
 

-XX:QueuedAllocationWarningCount=<value>intx YYYY 
 

-XX:ReadSpinIterations=<value>intxYYYYY 
 

-XX:+ReduceSignalUsageboolYYYYY 
 

-XX:RefDiscoveryPolicy=<value>intx  YYY 
-XX:+RequireSharedSpacesbool    Y 
-XX:ReservedCodeCacheSize=<value>intxYYYYYReserved code cache size (in bytes) - maximum code cache size. [Solaris 64-bit: 1024m]
 

-XX:+ResizeTLABbool YYYYEnable or disable resizing of TLABs. The -server VM has this option enabled by default.
 

-XX:+ResizeTLEboolY     
 

-XX:+RewriteBytecodesbool YYYY 
 

-XX:+RewriteFrequentPairsboolYYYYY 
 

-XX:+SafepointPollingbool    Y 
 

-XX:+ScavengeBeforeFullGCbool  YYY 
-XX:ScavengeThreads=<value>Y     
-XX:SelfDestructTimer=<value>intxYYYYY 
 

-XX:+SerializeVMOutputbool   YY 
 

-XX:SharedDummyBlockSize=<value>uintx    Y 
-XX:SharedMiscDataSize=<value>uintx    Y 
-XX:SharedReadOnlySize=<value>uintx    Y 
-XX:SharedReadWriteSize=<value>uintx    Y 
-XX:+ShowMessageBoxOnErrorboolYYYYY 
 

-XX:SliceSizeInCards=<value>Y     
-XX:SoftRefLRUPolicyMSPerMB=<value>intxYYYYYStarting with Java HotSpot VM implementations in J2SE 1.3.1, softly reachable objects will remain alive for some amount of time after the last time they were referenced. The default value is one second of lifetime per free megabyte in the heap. This value can be adjusted using the -XX:SoftRefLRUPolicyMSPerMB flag, which accepts integer values representing milliseconds per MB of free memory.
 

-XX:StackRedPages=<value>intxYYYYY 
-XX:StackShadowPages=<value>intx   YY 
 

-XX:+StackTraceInThrowableboolYYYYYEnable or disable stack traces in exceptions.
 

-XX:StackYellowPages=<value>intxYYYYY 
-XX:Stage2CompileThreshold=<value>intx Y    
-XX:+StagedCompilationbool Y    
-XX:StarvationMonitorInterval=<value>intxYYYYY 
-XX:SurvivorPadding=<value>uintx  YYY 
-XX:SurvivorRatio=<value>intxYYYYYSets the ratio of the survivor spaces (there are two) to the whole of the young generation.
 

-XX:TLABAllocationWeight=<value>uintx    Y 
-XX:TLABFragmentationRatio=<value>uintx YYY  
-XX:TLABRefillWasteFraction=<value>uintx    Y 
-XX:TLABSize=<value>uintx YYYYSet the size of the TLAB in bytes.
 

-XX:+TLABStatsbool    Y 
-XX:TLABThreadRatio=<value>uintx YYY  
 

-XX:TLABWasteIncrement=<value>uintx    Y 
-XX:TLABWasteTargetPercent=<value>uintx    Y 
-XX:TLEFragmentationRatio=<value>Y     
-XX:TLESize=<value>size_tY    Sets the size of the TLEs (in bytes)
 

-XX:TLEThreadRatio=<value>Y     
 

-XX:TargetSurvivorOccupationRatio=<value>size_tY     
-XX:TargetSurvivorPadding=<value>size_tY     
-XX:TargetSurvivorRatio=<value>intxYYYYYThis flag sets the desired percentage of the survivor space heap which must be used before objects are promoted to the old generation. For example, setting z to 90 would mean that 90% of the survivor space must be used before the young generation is considered full and objects are promoted to the old generation. This would allow objects to age more in the young generation before being tenured. The default value is 50.
 

-XX:TenuredGenerationSizeIncrement=<value>uintx    Y 
-XX:TenuredGenerationSizeSupplement=<value>uintx    Y 
-XX:TenuredGenerationSizeSupplementDecay=<value>uintx    Y 
-XX:ThreadPriorityPolicy=<value>intx    Y 
-XX:+ThreadPriorityVerbosebool   YY 
 

-XX:ThreadSafetyMargin=<value>intx    Y 
-XX:ThreadStackSize=<value>intxYYYYYThread Stack Size (in Kbytes) (0 means use default stack size) [Sparc: 512, Solaris Intel: 256, Sparc 64bit: 1024 all others 0]
 

-XX:ThresholdTolerance=<value>uintx  YYY 
-XX:Tier2CompileThreshold=<value>intx  YYY 
-XX:+TieredCompilationbool  YYY 
-XX:+TraceClassLoadingboolYYYYYDisplay classes as they are loaded. Similar to -verbose:class
-XX:+TraceClassLoadingPreorderbool   YY 
-XX:+TraceClassResolutionbool   YY 
-XX:+TraceClassUnloadingboolYYYYYDisplay classes as they are unloaded.
 

-XX:+TraceFailedVMTextSegmentRetargetbool YY   
-XX:+TraceGen0Timebool YYYY 
-XX:+TraceGen1Timebool YYYY 
-XX:TraceJVMTI=<value>ccstr    Y 
 

-XX:+TraceJVMTIObjectTaggingbool    Y 
-XX:TypeProfileFailureLimit=<value>intx YYYY 
-XX:TypeProfileMinimumRatio=<value>intx YYYY 
-XX:Ultra3PrefetchCopyIntervalInBytes=<value>Y     
-XX:Ultra3PrefetchScanIntervalInBytes=<value>Y     
-XX:Ultra3PrefetchScavengeFieldsAhead=<value>Y     
-XX:+UnlockDiagnosticVMOptionsbool   YY 
 

-XX:+Use486InstrsOnlybool YYYY 
-XX:+UseAdaptiveGCBoundarybool    Y 
-XX:+UseAdaptiveGenerationSizePolicyAtMajorCollectionbool    Y 
-XX:+UseAdaptiveGenerationSizePolicyAtMinorCollectionbool    Y 
-XX:+UseAdaptiveSizePolicybool  YYYAutomatically sizes the young generation and chooses an optimum survivor ratio to maximize performance.
 

-XX:+UseAdaptiveSizePolicyAggressiveFootprintGoalbool    Y 
-XX:+UseAdaptiveSizePolicyFootprintGoalbool    Y 
-XX:+UseAdaptiveSizePolicyWithSystemGCbool    Y 
-XX:+UseAdaptiveSizeScaleFootprintChangeByRatiobool    Y 
-XX:+UseAdaptiveSizeScaleThroughputChangeByRatiobool    Y 
-XX:+UseAltSigsboolY YYYOn the Solaris operating environment, the VM uses SIGUSR1 by default, which can sometimes conflict with applications that signal-chain SIGUSR1. -XX:+UseAltSigs will cause the VM to use signals other than SIGUSR1 and SIGUSR2 as the default.
 

-XX:+UseBiasedLockingbool    YThis option first appears in 1.5.0_06. Enables a technique for improving the performance of uncontended synchronization. Some applications with significant amounts of uncontended synchronization may attain significant speedups with this flag enabled.
 

-XX:+UseBoundThreadsboolYYYYYBind user level threads (Solaris only)
 

-XX:+UseC2CallingConventionsboolYYYY  
 

-XX:+UseCMSBestFitbool  YYY 
-XX:+UseCMSCollectionPassingbool  YYY 
-XX:+UseCMSCompactAtFullCollectionbool  YYYNormally the concurrent low pause collector does not copy nor compact the live objects. A garbage collection is done without moving the live objects. If fragmentation becomes a problem, allocate a larger heap. In 1.4.2 if fragmentation in the tenured generation becomes a problem, a compaction of the tenured generation will be done although not concurrently. In 1.4.1 that compaction will occur if the UseCMSCompactAtFullCollection option is turned on.
 

-XX:+UseCMSInitiatingOccupancyOnlybool  YYYUsed to enabled/disable the use of the anticipated promotions to start a concurrent collection set
 

-XX:+UseCompilerbool YYYY 
-XX:+UseCompilerSafepointsboolYYYYY 
 

-XX:+UseConcMarkSweepGCbool YYYYThis flag turns on concurrent garbage collection in the old generation. Available from J2SE1.4.1.
 

-XX:+UseDefaultStackSizeboolYYYYY 
-XX:+UseFastAccessorMethodsboolYYYYY 
 

-XX:+UseFastEmptyMethodsboolYYYYY 
 

-XX:+UseFastJNIAccessorsbool    Y 
 

-XX:+UseFixedFrameSizebool YYY  
 

-XX:+UseForcedSuspensionbool  YY  
 

-XX:+UseGCTaskAffinitybool  YYY 
-XX:+UseHeavyMonitorsboolYYYYY 
 

-XX:+UseISMboolYYYYYIntimate Shared Memory
 

-XX:+UseInterpreterboolYYYYY 
 

-XX:+UseLWPSynchronizationboolYYYYYUse LWP-based instead of thread based synchronization. Default is on in J2SE 1.4.0 or higher. (Solaris only)
 

-XX:+UseLargePageSizebool YY   
-XX:+UseLoopCounterboolYYYYY 
 

-XX:+UseMPSSbool YYYYUse Multiple Page Size Support (Solaris 9 only) w/4mb pages for the heap. Do not use with ISM as this replaces the need for ISM.
 

-XX:+UseNewFeature1bool   YY 
-XX:+UseNewFeature2bool   YY 
-XX:+UseNewFeature3bool   YY 
-XX:+UseNewFeature4bool   YY 
-XX:+UseOnStackReplacementboolYYYYY 
 

-XX:+UseOversizedCarHandlingbool YYYY 
-XX:+UsePSAdaptiveSurvivorSizePolicybool    Y 
-XX:+UseParNewGCbool  YYYThis flag turns on parallel garbage collection in the young generation. It can be enabled together with the CMS collector in the old generation. Available in J2SE1.4.1 on an experimental basis.
 

-XX:+UseParallelGCbool  YYYThis flag also turns on parallel garbage collection policy in the young generation; however, it does not work with the CMS collector in the old generation. It is more suitable for enterprise applications which can benefit from very large young generation heaps.
 

-XX:+UseParallelScavengeboolY     
 

-XX:+UsePerfDatabool  YYY 
 

-XX:+UsePermISMboolYYYYY 
 

-XX:+UseRecompilationboolY     
 

-XX:+UseResizableSurvivorSpacesboolY     
-XX:+UseSerialGCbool    YEnable the "legacy" serial garbage collector. The 1.5+ collectors are generally more robust now, and this garbage collector will not be supported much longer
 

-XX:+UseSharedSpacesbool    Y 
 

-XX:+UseSignalChainingboolYYYYY 
 

-XX:+UseSpecLockboolYY    
 

-XX:+UseSpinningboolYYYYY 
 

-XX:+UseSplitVerifierbool    Y 
-XX:UseSSE=<value>intx    Y
From Bug 5108893, The option probably indicates whether the compiler should
make use of the processor's SSEi instructions and is only available in server VMs.
-XX:+UseSuspendResumeThreadListsbool   YY 
-XX:+UseTLABbool YYYYTurn off thread-local object allocation
 

-XX:+UseTLEboolY    Turn off thread local portions of the heap in the young generation
 

-XX:+UseThreadPrioritiesboolYYYYYUse native thread priorities
 

-XX:+UseTrainGCboolYYYYY 
 

-XX:+UseTypeProfileboolYYYYY 
 

-XX:+VMThreadHintNoPreemptbool   YY 
-XX:VMThreadPriority=<value>intx   YY 
-XX:VMThreadStackSize=<value>intxYYYYY 
 

-XX:ValueMapBucketInitialSize=<value>intx Y    
-XX:ValueMapBucketMaxSize=<value>intx Y    
-XX:ValueMapMaxSize=<value>intx Y    
-XX:+VerifyBeforeIterationbool    Y 
-XX:YoungGenerationSizeIncrement=<value>uintx    Y 
-XX:YoungGenerationSizeSupplement=<value>uintx    Y 
-XX:YoungGenerationSizeSupplementDecay=<value>uintx    Y 
-XX:YoungPLABSize=<value>uintx  YYY 
-XX:+ZeroTLABbool YYYY 
 

-XX:+ZeroTLEboolY     
 















References:



  1. JVM Performance Documentation


  2. Analyzing Stack Traces


  3. Turbo-charging Java HotSpot Virtual Machine


  4. Java HotSpot VM Options


  5. Tuning Garbage Collection with the 1.3.1 Java Virtual Machine


  6. Java and Solaris Threading


  7. Frequently Asked Questions about Garbage Collection in the HotspotTM JavaTM Virtual Machine


  8. Tuning Garbage Collection with the 1.4.2 Java[tm] Virtual Machine


  9. Improving Java Application Performance and Scalability by Reducing Garbage Collection Times and Sizing Memory Using JDK 1.4.1


  10. Big Heaps and Intimate Shared Memory (ISM)


  11. A Test of Java Virtual Machine Performance


  12. HotSpot Performance Tuning


  13. The Java HotSpot Virtual Machine Client Compiler


  14. Java Developer Connection Bug Parade


  15. SDK release notes 1.3.1.12


  16. JavaTM Virtual Machine Profiler Interface (JVMPI)


  17. Garbage Collector Ergonomics


  18. Java Developer Connection Forums


  19. Frequently Asked Questions About the Java HotSpot VM


  20. Java HotSpotTM Server VM Version 2.0 for Win32 Platforms


  21. J2SE 1.5 in a Nutshell


  22. 1.4.2 HotSpot Instrumentation


  23. HotSpot Technology Tools and HP-Specific Features


  24. Diagnosing a Garbage Collection problem


  25. GC Portal


  26. HotSpot Performance Tuning


  27. Java HotSpot VM Options (docs.sun.com)


  28. Java Tuning White Paper





[/HTML]
반응형

'Know > Java' 카테고리의 다른 글

AIX Java News and FAQ  (0) 2006.03.16
자바서비스넷 기술자료 링크  (2) 2006.02.07
Jakarta Commons HttpClient  (0) 2006.01.10
캐릭터셋 관련  (0) 2006.01.05
불필요한 JSP 재컴파일을 피하는 방법  (0) 2005.12.20