java

关注公众号 jb51net

关闭
首页 > 软件编程 > java > Java启动参数

Java启动参数(-, -X, -XX参数)的使用

作者:guyue35

本文主要介绍了Java启动参数(-, -X, -XX参数)的使用,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

Java启动参数分类

一、JVM标准参数(-)

获取方法: java -help

JVM的标准参数都是以”-“开头,通过输入”java -help”或者”java -?”,可以查看JVM标准参数列表。如

这里写代码片

以下是JVM标准参数的详细介绍(加粗标记的参数请着重注意):

-client

设置jvm使用client模式,特点是启动速度比较快,但运行时性能和内存管理效率不高,通常用于客户端应用程序或者PC应用开发和调试。

-server

设置jvm使server模式,特点是启动速度比较慢,但运行时性能和内存管理效率很高,适用于生产环境。在具有64位能力的jdk环境下将默认启用该模式,而忽略-client参数。

-agentlib:libname[=options]

用于装载本地lib包;

其中libname为本地代理库文件名,默认搜索路径为环境变量PATH中的路径,options为传给本地库启动时的参数,多个参数之间用逗号分隔。在Windows平台上jvm搜索本地库名为libname.dll的文件,在linux上jvm搜索本地库名为libname.so的文件,搜索路径环境变量在不同系统上有所不同,比如Solaries上就默认搜索LD_LIBRARY_PATH。

比如:-agentlib:hprof

用来获取jvm的运行情况,包括CPU、内存、线程等的运行数据,并可输出到指定文件中;windows中搜索路径为JRE_HOME/bin/hprof.dll。

-agentpath:pathname[=options]

按全路径装载本地库,不再搜索PATH中的路径;其他功能和agentlib相同;更多的信息待续,在后续的JVMTI部分会详述。

-classpath classpath

-cp classpath

告知jvm搜索目录名、jar文档名、zip文档名,之间用分号;分隔;使用-classpath后jvm将不再使用CLASSPATH中的类搜索路径,如果-classpath和CLASSPATH都没有设置,则jvm使用当前路径(.)作为类搜索路径。

jvm搜索类的方式和顺序为:Bootstrap,Extension,User。

Bootstrap中的路径是jvm自带的jar或zip文件,jvm首先搜索这些包文件,用System.getProperty(“sun.boot.class.path”)可得到搜索路径。

Extension是位于JRE_HOME/lib/ext目录下的jar文件,jvm在搜索完Bootstrap后就搜索该目录下的jar文件,用System.getProperty(“java.ext.dirs”)可得到搜索路径。

User搜索顺序为当前路径.、CLASSPATH、-classpath,jvm最后搜索这些目录,用System.getProperty(“java.class.path”)可得到搜索路径。

-Dproperty=value

设置系统属性名/值对,运行在此jvm之上的应用程序可用System.getProperty(“property”)得到value的值。

如果value中有空格,则需要用双引号将该值括起来,如-Dname=”space string”。

该参数通常用于设置系统级全局变量值,如配置文件路径,以便该属性在程序中任何地方都可访问。

-enableassertions[:”…” | : ]

-ea[:”…” | : ]

上述参数就用来设置jvm是否启动断言机制(从JDK 1.4开始支持),缺省时jvm关闭断言机制。

用-ea 可打开断言机制,不加和classname时运行所有包和类中的断言,如果希望只运行某些包或类中的断言,可将包名或类名加到-ea之后。例如要启动包com.wombat.fruitbat中的断言,可用命令java -ea:com.wombat.fruitbat…。

-disableassertions[:”…” | :

二、JVM非标准参数(-X)

获取方法: java -X

通过”java -X”可以输出非标准参数列表,如下所示:

非标准参数又称为扩展参数,其列表如下:

-Xint

设置jvm以解释模式运行,所有的字节码将被直接执行,而不会编译成本地码。

-Xbatch

关闭后台代码编译,强制在前台编译,编译完成之后才能进行代码执行;

默认情况下,jvm在后台进行编译,若没有编译完成,则前台运行代码时以解释模式运行。

-Xbootclasspath:bootclasspath

让jvm从指定路径(可以是分号分隔的目录、jar、或者zip)中加载bootclass,用来替换jdk的rt.jar;若非必要,一般不会用到;

-Xbootclasspath/a:path

将指定路径的所有文件追加到默认bootstrap路径中;

-Xbootclasspath/p:path

让jvm优先于bootstrap默认路径加载指定路径的所有文件;

-Xcheck:jni

对JNI函数进行附加check;此时jvm将校验传递给JNI函数参数的合法性,在本地代码中遇到非法数据时,jmv将报一个致命错误而终止;使用该参数后将造成性能下降,请慎用。

-Xfuture

让jvm对类文件执行严格的格式检查(默认jvm不进行严格格式检查),以符合类文件格式规范,推荐开发人员使用该参数。

-Xnoclassgc

关闭针对class的gc功能;因为其阻止内存回收,所以可能会导致OutOfMemoryError错误,慎用;

-Xincgc

开启增量gc(默认为关闭);这有助于减少长时间GC时应用程序出现的停顿;但由于可能和应用程序并发执行,所以会降低CPU对应用的处理能力。

-Xloggc:file

与-verbose:gc功能类似,只是将每次GC事件的相关情况记录到一个文件中,文件的位置最好在本地,以避免网络的潜在问题。

若与verbose命令同时出现在命令行中,则以-Xloggc为准。

-Xms

指定jvm堆的初始大小,默认为物理内存的1/64,最小为1M;可以指定单位,比如k、m,若不指定,则默认为字节。

-Xmx

指定jvm堆的最大值,默认为物理内存的1/4或者1G,最小为2M;单位与-Xms一致。

-Xss

设置单个线程栈的大小,一般默认为512k。

-Xprof

输出 cpu 配置文件数据

-Xrs

减少jvm对操作系统信号(signals)的使用,该参数从1.3.1开始有效;

从jdk1.3.0开始,jvm允许程序在关闭之前还可以执行一些代码(比如关闭数据库的连接池),即使jvm被突然终止;

jvm关闭工具通过监控控制台的相关事件而满足以上的功能;更确切的说,通知在关闭工具执行之前,先注册控制台的控制handler,然后对CTRL_C_EVENT, CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT, and CTRL_SHUTDOWN_EVENT这几类事件直接返回true。

但如果jvm以服务的形式在后台运行(比如servlet引擎),他能接收CTRL_LOGOFF_EVENT事件,但此时并不需要初始化关闭程序;为了避免类似冲突的再次出现,从jdk1.3.1开始提供-Xrs参数;当此参数被设置之后,jvm将不接收控制台的控制handler,也就是说他不监控和处理CTRL_C_EVENT, CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT, or CTRL_SHUTDOWN_EVENT事件。

上面这些参数中,比如-Xmsn、-Xmxn……都是我们性能优化中很重要的参数;

-Xprof、-Xloggc:file等都是在没有专业跟踪工具情况下排错的好手;

三、JVM非Stable参数(-XX)

获取方法:  java -XX:+PrintFlagsInitial   

Java 6(update 21oder 21之后)版本, HotSpot JVM 提供给了两个新的参数,在JVM启动后,在命令行中可以输出所有XX参数和值。

-XX:+PrintFlagsFinal and -XX:+PrintFlagsInitial

读者可以使用以下语句输出所有的参数和默认值

java -XX:+PrintFlagsInitial >>1.txt 或者 java -XX:+PrintFlagsInitial>>1.txt

由于非State参数非常的多,因此这里就不列出所有参数进行讲解。只介绍我们比较常用的。

Java HotSpot VM中-XX:的可配置参数列表进行描述;

这些参数可以被松散的聚合成三类:

行为参数(Behavioral Options):用于改变jvm的一些基础行为;

性能调优(Performance Tuning):用于jvm的性能调优;

调试参数(Debugging Options):一般用于打开跟踪、打印、输出等jvm参数,用于显示jvm更加详细的信息;

行为参数(功能开关)
-XX:-DisableExplicitGC  禁止调用System.gc();但jvm的gc仍然有效
-XX:+MaxFDLimit 最大化文件描述符的数量限制
-XX:+ScavengeBeforeFullGC   新生代GC优先于Full GC执行
-XX:+UseGCOverheadLimit 在抛出OOM之前限制jvm耗费在GC上的时间比例
-XX:-UseConcMarkSweepGC 对老生代采用并发标记交换算法进行GC
-XX:-UseParallelGC  启用并行GC
-XX:-UseParallelOldGC   对Full GC启用并行,当-XX:-UseParallelGC启用时该项自动启用
-XX:-UseSerialGC    启用串行GC
-XX:+UseThreadPriorities    启用本地线程优先级
性能调优
-XX:LargePageSizeInBytes=4m 设置用于Java堆的大页面尺寸
-XX:MaxHeapFreeRatio=70 GC后java堆中空闲量占的最大比例
-XX:MaxNewSize=size 新生成对象能占用内存的最大值
-XX:MaxPermSize=64m 老生代对象能占用内存的最大值
-XX:MinHeapFreeRatio=40 GC后java堆中空闲量占的最小比例
-XX:NewRatio=2  新生代内存容量与老生代内存容量的比例
-XX:NewSize=2.125m  新生代对象生成时占用内存的默认值
-XX:ReservedCodeCacheSize=32m   保留代码占用的内存容量
-XX:ThreadStackSize=512 设置线程栈大小,若为0则使用系统默认值
-XX:+UseLargePages  使用大页面内存
调试参数
-XX:-CITime 打印消耗在JIT编译的时间
-XX:ErrorFile=./hs_err_pid<pid>.log 保存错误日志或者数据到文件中
-XX:-ExtendedDTraceProbes   开启solaris特有的dtrace探针
-XX:HeapDumpPath=./java_pid<pid>.hprof  指定导出堆信息时的路径或文件名
-XX:-HeapDumpOnOutOfMemoryError 当首次遭遇OOM时导出此时堆中相关信息
-XX:OnError="<cmd args>;<cmd args>" 出现致命ERROR之后运行自定义命令
-XX:OnOutOfMemoryError="<cmd args>;<cmd args>"  当首次遭遇OOM时执行自定义命令
-XX:-PrintClassHistogram    遇到Ctrl-Break后打印类实例的柱状信息,与jmap -histo功能相同
-XX:-PrintConcurrentLocks   遇到Ctrl-Break后打印并发锁的相关信息,与jstack -l功能相同
-XX:-PrintCommandLineFlags  打印在命令行中出现过的标记
-XX:-PrintCompilation   当一个方法被编译时打印相关信息
-XX:-PrintGC    每次GC时打印相关信息
-XX:-PrintGC Details    每次GC时打印详细信息
-XX:-PrintGCTimeStamps  打印每次GC的时间戳
-XX:-TraceClassLoading  跟踪类的加载信息
-XX:-TraceClassLoadingPreorder  跟踪被引用到的所有类的加载信息
-XX:-TraceClassResolution   跟踪常量池
-XX:-TraceClassUnloading    跟踪类的卸载信息
-XX:-TraceLoaderConstraints 跟踪类加载器约束的相关信息

JDK8-XX参数整理

JDK8 获取所有-XX参数列表

java -XX:+PrintFlagsInitial >>1.txt

1.8所有-XX参数列表

数据类型参数名默认值不清楚干嘛的自己的总结
intxActiveProcessorCount-1{product}
uintxAdaptiveSizeDecrementScaleFactor4{product}
uintxAdaptiveSizeMajorGCDecayTimeScale10{product}
uintxAdaptiveSizePausePolicy0{product}
uintxAdaptiveSizePolicyCollectionCostMargin50{product}
uintxAdaptiveSizePolicyInitializingSteps20{product}
uintxAdaptiveSizePolicyOutputInterval0{product}
uintxAdaptiveSizePolicyWeight10{product}
uintxAdaptiveSizeThroughPutPolicy0{product}
uintxAdaptiveTimeWeight25{product}
boolAdjustConcurrencyfalse{product}
boolAggressiveHeapfalse{product}
boolAggressiveOptsfalse{product}
intxAliasLevel3{C2product}
boolAlignVectortrue{C2product}
intxAllocateInstancePrefetchLines1{product}
intxAllocatePrefetchDistance-1{product}
intxAllocatePrefetchInstr0{product}
intxAllocatePrefetchLines3{product}
intxAllocatePrefetchStepSize16{product}
intxAllocatePrefetchStyle1{product}
boolAllowJNIEnvProxyfalse{product}
boolAllowNonVirtualCallsfalse{product}
boolAllowParallelDefineClassfalse{product}
boolAllowUserSignalHandlersfalse{product}
boolAlwaysActAsServerClassMachinefalse{product}
boolAlwaysCompileLoopMethodsfalse{product}
boolAlwaysLockClassLoaderfalse{product}
boolAlwaysPreTouchfalse{product}
boolAlwaysRestoreFPUfalse{product}
boolAlwaysTenurefalse{product}
boolAssertOnSuspendWaitFailurefalse{product}
boolAssumeMPfalse{product}
intxAutoBoxCacheMax128{C2product}
uintxAutoGCSelectPauseMillis5000{product}
intxBCEATraceLevel0{product}
intxBackEdgeThreshold100000{pdproduct}
boolBackgroundCompilationtrue{pdproduct}
uintxBaseFootPrintEstimate268435456{product}
intxBiasedLockingBulkRebiasThreshold20{product}
intxBiasedLockingBulkRevokeThreshold40{product}
intxBiasedLockingDecayTime25000{product}
intxBiasedLockingStartupDelay4000{product}
boolBindGCTaskThreadsToCPUsfalse{product}
boolBlockLayoutByFrequencytrue{C2product}
intxBlockLayoutMinDiamondPercentage20{C2product}
boolBlockLayoutRotateLoopstrue{C2product}
boolBranchOnRegisterfalse{C2product}
boolBytecodeVerificationLocalfalse{product}
boolBytecodeVerificationRemotetrue{product}
boolC1OptimizeVirtualCallProfilingtrue{C1product}
boolC1ProfileBranchestrue{C1product}
boolC1ProfileCallstrue{C1product}
boolC1ProfileCheckcaststrue{C1product}
boolC1ProfileInlinedCallstrue{C1product}
boolC1ProfileVirtualCallstrue{C1product}
boolC1UpdateMethodDatatrue{C1product}
intxCICompilerCount2{product}
boolCICompilerCountPerCPUfalse{product}
boolCITimefalse{product}
boolCMSAbortSemanticsfalse{product}
uintxCMSAbortablePrecleanMinWorkPerIteration100{product}
intxCMSAbortablePrecleanWaitMillis100{manageable}
uintxCMSBitMapYieldQuantum10485760{product}
uintxCMSBootstrapOccupancy50{product}
boolCMSClassUnloadingEnabledtrue{product}
uintxCMSClassUnloadingMaxInterval0{product}
boolCMSCleanOnEntertrue{product}
boolCMSCompactWhenClearAllSoftRefstrue{product}
uintxCMSConcMarkMultiple32{product}
boolCMSConcurrentMTEnabledtrue{product}
uintxCMSCoordinatorYieldSleepCount10{product}
boolCMSDumpAtPromotionFailurefalse{product}
boolCMSEdenChunksRecordAlwaystrue{product}
uintxCMSExpAvgFactor50{product}
boolCMSExtrapolateSweepfalse{product}
uintxCMSFullGCsBeforeCompaction0{product}
uintxCMSIncrementalDutyCycle10{product}
uintxCMSIncrementalDutyCycleMin0{product}
boolCMSIncrementalModefalse{product}
uintxCMSIncrementalOffset0{product}
boolCMSIncrementalPacingtrue{product}
uintxCMSIncrementalSafetyFactor10{product}
uintxCMSIndexedFreeListReplenish4{product}
intxCMSInitiatingOccupancyFraction-1{product}
uintxCMSIsTooFullPercentage98{product}
doubleCMSLargeCoalSurplusPercent0.950000{product}
doubleCMSLargeSplitSurplusPercent1.000000{product}
boolCMSLoopWarnfalse{product}
uintxCMSMaxAbortablePrecleanLoops0{product}
intxCMSMaxAbortablePrecleanTime5000{product}
uintxCMSOldPLABMax1024{product}
uintxCMSOldPLABMin16{product}
uintxCMSOldPLABNumRefills4{product}
uintxCMSOldPLABReactivityFactor2{product}
boolCMSOldPLABResizeQuickerfalse{product}
uintxCMSOldPLABToleranceFactor4{product}
boolCMSPLABRecordAlwaystrue{product}
uintxCMSParPromoteBlocksToClaim16{product}
boolCMSParallelInitialMarkEnabledtrue{product}
boolCMSParallelRemarkEnabledtrue{product}
boolCMSParallelSurvivorRemarkEnabledtrue{product}
uintxCMSPrecleanDenominator3{product}
uintxCMSPrecleanIter3{product}
uintxCMSPrecleanNumerator2{product}
boolCMSPrecleanRefLists1true{product}
boolCMSPrecleanRefLists2false{product}
boolCMSPrecleanSurvivors1false{product}
boolCMSPrecleanSurvivors2true{product}
uintxCMSPrecleanThreshold1000{product}
boolCMSPrecleaningEnabledtrue{product}
boolCMSPrintChunksInDumpfalse{product}
boolCMSPrintEdenSurvivorChunksfalse{product}
boolCMSPrintObjectsInDumpfalse{product}
uintxCMSRemarkVerifyVariant1{product}
boolCMSReplenishIntermediatetrue{product}
uintxCMSRescanMultiple32{product}
uintxCMSSamplingGrain16384{product}
boolCMSScavengeBeforeRemarkfalse{product}
uintxCMSScheduleRemarkEdenPenetration50{product}
uintxCMSScheduleRemarkEdenSizeThreshold2097152{product}
uintxCMSScheduleRemarkSamplingRatio5{product}
doubleCMSSmallCoalSurplusPercent1.050000{product}
doubleCMSSmallSplitSurplusPercent1.100000{product}
boolCMSSplitIndexedFreeListBlockstrue{product}
intxCMSTriggerInterval-1{manageable}
uintxCMSTriggerRatio80{product}
intxCMSWaitDuration2000{manageable}
uintxCMSWorkQueueDrainThreshold10{product}
boolCMSYieldtrue{product}
uintxCMSYieldSleepCount0{product}
uintxCMSYoungGenPerWorker67108864{pdproduct}
uintxCMS_FLSPadding1{product}
uintxCMS_FLSWeight75{product}
uintxCMS_SweepPadding1{product}
uintxCMS_SweepTimerThresholdMillis10{product}
uintxCMS_SweepWeight75{product}
boolCheckEndorsedAndExtDirsfalse{product}
boolCheckJNICallsfalse{product}
boolClassUnloadingtrue{product}
boolClassUnloadingWithConcurrentMarktrue{product}
intxClearFPUAtPark0{product}
boolClipInliningtrue{product}
uintxCodeCacheExpansionSize65536{pdproduct}
uintxCodeCacheMinimumFreeSpace512000{product}
boolCollectGen0Firstfalse{product}
boolCompactFieldstrue{product}
intxCompilationPolicyChoice0{product}
ccstrlistCompileCommand{product}
ccstrCompileCommandFile{product}
ccstrlistCompileOnly{product}
intxCompileThreshold10000{pdproduct}
boolCompilerThreadHintNoPreempttrue{product}
intxCompilerThreadPriority-1{product}
intxCompilerThreadStackSize0{pdproduct}
uintxCompressedClassSpaceSize1073741824{product}
uintxConcGCThreads0{product}
intxConditionalMoveLimit3{C2pd
intxContendedPaddingWidth128{product}
boolConvertSleepToYieldtrue{pdproduct}
boolConvertYieldToSleepfalse{product}
boolCrashOnOutOfMemoryErrorfalse{product}
boolCreateMinidumpOnCrashfalse{product}
boolCriticalJNINativestrue{product}
boolDTraceAllocProbesfalse{product}
boolDTraceMethodProbesfalse{product}
boolDTraceMonitorProbesfalse{product}
boolDebuggingfalse{product}
uintxDefaultMaxRAMFraction4{product}
intxDefaultThreadPriority-1{product}
intxDeferPollingPageLoopCount-1{product}
intxDeferThrSuspendLoopCount4000{product}
boolDeoptimizeRandomfalse{product}
boolDisableAttachMechanismfalse{product}
boolDisableExplicitGCfalse{product}
boolDisplayVMOutputToStderrfalse{product}
boolDisplayVMOutputToStdoutfalse{product}
boolDoEscapeAnalysistrue{C2product}
boolDontCompileHugeMethodstrue{product}
boolDontYieldALotfalse{pdproduct}
ccstrDumpLoadedClassList{product}
boolDumpReplayDataOnErrortrue{product}
boolDumpSharedSpacesfalse{product}
boolEagerXrunInitfalse{product}
intxEliminateAllocationArraySizeLimit64{C2product}
boolEliminateAllocationstrue{C2product}
boolEliminateAutoBoxtrue{C2product}
boolEliminateLockstrue{C2product}
boolEliminateNestedLockstrue{C2product}
intxEmitSync0{product}
boolEnableContendedtrue{product}
boolEnableResourceManagementTLABCachetrue{product}
boolEnableSharedLookupCachetrue{product}
boolEnableTracingfalse{product}
uintxErgoHeapSizeLimit0{product}
ccstrErrorFile{product}
ccstrErrorReportServer{product}
doubleEscapeAnalysisTimeout20.000000{C2product}
boolEstimateArgEscapetrue{product}
boolExitOnOutOfMemoryErrorfalse{product}
boolExplicitGCInvokesConcurrentfalse{product}
boolExplicitGCInvokesConcurrentAndUnloadsClassesfalse{product}
boolExtendedDTraceProbesfalse{product}
ccstrExtraSharedClassListFile{product}
boolFLSAlwaysCoalesceLargefalse{product}
uintxFLSCoalescePolicy2{product}
doubleFLSLargestBlockCoalesceProximity0.990000{product}
boolFailOverToOldVerifiertrue{product}
boolFastTLABRefilltrue{product}
intxFenceInstruction0{ARCHproduct}
intxFieldsAllocationStyle1{product}
boolFilterSpuriousWakeupstrue{product}
ccstrFlightRecorderOptions{product}
boolForceNUMAfalse{product}
boolForceTimeHighResolutionfalse{product}
intxFreqInlineSize325{pdproduct}
doubleG1ConcMarkStepDurationMillis10.000000{product}
uintxG1ConcRSHotCardLimit4{product}
uintxG1ConcRSLogCacheSize10{product}
intxG1ConcRefinementGreenZone0{product}
intxG1ConcRefinementRedZone0{product}
intxG1ConcRefinementServiceIntervalMillis300{product}
uintxG1ConcRefinementThreads0{product}
intxG1ConcRefinementThresholdStep0{product}
intxG1ConcRefinementYellowZone0{product}
uintxG1ConfidencePercent50{product}
uintxG1HeapRegionSize0{product}
uintxG1HeapWastePercent5{product}
uintxG1MixedGCCountTarget8{product}
intxG1RSetRegionEntries0{product}
uintxG1RSetScanBlockSize64{product}
intxG1RSetSparseRegionEntries0{product}
intxG1RSetUpdatingPauseTimePercent10{product}
intxG1RefProcDrainInterval10{product}
uintxG1ReservePercent10{product}
uintxG1SATBBufferEnqueueingThresholdPercent60{product}
intxG1SATBBufferSize1024{product}
intxG1UpdateBufferSize256{product}
boolG1UseAdaptiveConcRefinementtrue{product}
uintxGCDrainStackTargetSize64{product}
uintxGCHeapFreeLimit2{product}
uintxGCLockerEdenExpansionPercent5{product}
boolGCLockerInvokesConcurrentfalse{product}
uintxGCLogFileSize8192{product}
uintxGCPauseIntervalMillis0{product}
uintxGCTaskTimeStampEntries200{product}
uintxGCTimeLimit98{product}
uintxGCTimeRatio99{product}
uintxHeapBaseMinAddress2147483648{pdproduct}
boolHeapDumpAfterFullGCfalse{manageable}
boolHeapDumpBeforeFullGCfalse{manageable}
boolHeapDumpOnOutOfMemoryErrorfalse{manageable}
ccstrHeapDumpPath{manageable}
uintxHeapFirstMaximumCompactionCount3{product}
uintxHeapMaximumCompactionInterval20{product}
uintxHeapSizePerGCThread87241520{product}
boolIgnoreEmptyClassPathsfalse{product}
boolIgnoreUnrecognizedVMOptionsfalse{product}
uintxIncreaseFirstTierCompileThresholdAt50{product}
boolIncrementalInlinetrue{C2product}
uintxInitialBootClassLoaderMetaspaceSize4194304{product}
uintxInitialCodeCacheSize2555904{pdproduct}
uintxInitialHeapSize0{product}
uintxInitialRAMFraction64{product}
doubleInitialRAMPercentage1.562500{product}
uintxInitialSurvivorRatio8{product}
uintxInitialTenuringThreshold7{product}
uintxInitiatingHeapOccupancyPercent45{product}
boolInlinetrue{product}
ccstrInlineDataFile{product}
intxInlineSmallCode1000{pdproduct}
boolInlineSynchronizedMethodstrue{C1product}
boolInsertMemBarAfterArraycopytrue{C2product}
intxInteriorEntryAlignment16{C2pd
intxInterpreterProfilePercentage33{product}
boolJNIDetachReleasesMonitorstrue{product}
boolJavaMonitorsInStackTracetrue{product}
intxJavaPriority10_To_OSPriority-1{product}
intxJavaPriority1_To_OSPriority-1{product}
intxJavaPriority2_To_OSPriority-1{product}
intxJavaPriority3_To_OSPriority-1{product}
intxJavaPriority4_To_OSPriority-1{product}
intxJavaPriority5_To_OSPriority-1{product}
intxJavaPriority6_To_OSPriority-1{product}
intxJavaPriority7_To_OSPriority-1{product}
intxJavaPriority8_To_OSPriority-1{product}
intxJavaPriority9_To_OSPriority-1{product}
boolLIRFillDelaySlotsfalse{C1pd
uintxLargePageHeapSizeThreshold134217728{product}
uintxLargePageSizeInBytes0{product}
boolLazyBootClassLoadertrue{product}
intxLiveNodeCountInliningCutoff40000{C2product}
boolLoadExecStackDllInVMThreadtrue{product}
boolLogCommercialFeaturesfalse{product}
intxLoopMaxUnroll16{C2product}
intxLoopOptsCount43{C2product}
intxLoopUnrollLimit60{C2pd
intxLoopUnrollMin4{C2product}
boolLoopUnswitchingtrue{C2product}
boolManagementServerfalse{product}
uintxMarkStackSize4194304{product}
uintxMarkStackSizeMax536870912{product}
uintxMarkSweepAlwaysCompactCount4{product}
uintxMarkSweepDeadRatio5{product}
intxMaxBCEAEstimateLevel5{product}
intxMaxBCEAEstimateSize150{product}
uintxMaxDirectMemorySize0{product}
boolMaxFDLimittrue{product}
uintxMaxGCMinorPauseMillis18446744073709551615{product}
uintxMaxGCPauseMillis18446744073709551615{product}
uintxMaxHeapFreeRatio70{manageable}
uintxMaxHeapSize130862280{product}
intxMaxInlineLevel9{product}
intxMaxInlineSize35{product}
intxMaxJNILocalCapacity65536{product}
intxMaxJavaStackTraceDepth1024{product}
intxMaxJumpTableSize65000{C2product}
intxMaxJumpTableSparseness5{C2product}
intxMaxLabelRootDepth1100{C2product}
intxMaxLoopPad15{C2product}
uintxMaxMetaspaceExpansion5452592{product}
uintxMaxMetaspaceFreeRatio70{product}
uintxMaxMetaspaceSize18446744073709551615{product}
uintxMaxNewSize18446744073709551615{product}
intxMaxNodeLimit80000{C2product}
uint64_tMaxRAM137438953472{pdproduct}
uintxMaxRAMFraction4{product}
doubleMaxRAMPercentage25.000000{product}
intxMaxRecursiveInlineLevel1{product}
uintxMaxTenuringThreshold15{product}
intxMaxTrivialSize6{product}
intxMaxVectorSize32{C2product}
uintxMetaspaceSize21810376{pdproduct}
boolMethodFlushingtrue{product}
uintxMinHeapDeltaBytes170392{product}
uintxMinHeapFreeRatio40{manageable}
intxMinInliningThreshold250{product}
intxMinJumpTableSize10{C2pd
uintxMinMetaspaceExpansion340784{product}
uintxMinMetaspaceFreeRatio40{product}
uintxMinRAMFraction2{product}
doubleMinRAMPercentage50.000000{product}
uintxMinSurvivorRatio3{product}
uintxMinTLABSize2048{product}
intxMonitorBound0{product}
boolMonitorInUseListsfalse{product}
intxMultiArrayExpandLimit6{C2product}
boolMustCallLoadClassInternalfalse{product}
uintxNUMAChunkResizeWeight20{product}
uintxNUMAInterleaveGranularity2097152{product}
uintxNUMAPageScanRate256{product}
uintxNUMASpaceResizeRate1073741824{product}
boolNUMAStatsfalse{product}
ccstrNativeMemoryTrackingoff{product}
boolNeedsDeoptSuspendfalse{pdproduct}
boolNeverActAsServerClassMachinefalse{pdproduct}
boolNeverTenurefalse{product}
uintxNewRatio2{product}
uintxNewSize1363144{product}
uintxNewSizeThreadIncrease5320{pdproduct}
intxNmethodSweepActivity10{product}
intxNmethodSweepCheckInterval5{product}
intxNmethodSweepFraction16{product}
intxNodeLimitFudgeFactor2000{C2product}
uintxNumberOfGCLogFiles0{product}
intxNumberOfLoopInstrToAlign4{C2product}
intxObjectAlignmentInBytes8{lp64_product}
uintxOldPLABSize1024{product}
uintxOldPLABWeight50{product}
uintxOldSize5452592{product}
boolOmitStackTraceInFastThrowtrue{product}
ccstrlistOnError{product}
ccstrlistOnOutOfMemoryError{product}
intxOnStackReplacePercentage140{pdproduct}
boolOptimizeFilltrue{C2product}
boolOptimizePtrComparetrue{C2product}
boolOptimizeStringConcattrue{C2product}
boolOptoBundlingfalse{C2pd
intxOptoLoopAlignment16{pdproduct}
boolOptoSchedulingfalse{C2pd
uintxPLABWeight75{product}
boolPSChunkLargeArraystrue{product}
intxParGCArrayScanChunk50{product}
uintxParGCDesiredObjsFromOverflowList20{product}
boolParGCTrimOverflowtrue{product}
boolParGCUseLocalOverflowfalse{product}
uintxParallelGCBufferWastePct10{product}
uintxParallelGCThreads0{product}
boolParallelGCVerbosefalse{product}
uintxParallelOldDeadWoodLimiterMean50{product}
uintxParallelOldDeadWoodLimiterStdDev80{product}
boolParallelRefProcBalancingEnabledtrue{product}
boolParallelRefProcEnabledfalse{product}
boolPartialPeelAtUnsignedTeststrue{C2product}
boolPartialPeelLooptrue{C2product}
intxPartialPeelNewPhiDelta0{C2product}
uintxPausePadding1{product}
intxPerBytecodeRecompilationCutoff200{product}
intxPerBytecodeTrapLimit4{product}
intxPerMethodRecompilationCutoff400{product}
intxPerMethodTrapLimit100{product}
boolPerfAllowAtExitRegistrationfalse{product}
boolPerfBypassFileSystemCheckfalse{product}
intxPerfDataMemorySize32768{product}
intxPerfDataSamplingInterval50{product}
ccstrPerfDataSaveFile{product}
boolPerfDataSaveToFilefalse{product}
boolPerfDisableSharedMemfalse{product}
intxPerfMaxStringConstLength1024{product}
intxPreInflateSpin10{pdproduct}
boolPreferContainerQuotaForCPUCounttrue{product}
boolPreferInterpreterNativeStubsfalse{pdproduct}
intxPrefetchCopyIntervalInBytes-1{product}
intxPrefetchFieldsAhead-1{product}
intxPrefetchScanIntervalInBytes-1{product}
boolPreserveAllAnnotationsfalse{product}
boolPreserveFramePointerfalse{pdproduct}
uintxPretenureSizeThreshold0{product}
boolPrintAdaptiveSizePolicyfalse{product}
boolPrintCMSInitiationStatisticsfalse{product}
intxPrintCMSStatistics0{product}
boolPrintClassHistogramfalse{manageable}
boolPrintClassHistogramAfterFullGCfalse{manageable}
boolPrintClassHistogramBeforeFullGCfalse{manageable}
boolPrintCodeCachefalse{product}
boolPrintCodeCacheOnCompilationfalse{product}
boolPrintCommandLineFlagsfalse{product}
boolPrintCompilationfalse{product}
boolPrintConcurrentLocksfalse{manageable}
intxPrintFLSCensus0{product}
intxPrintFLSStatistics0{product}
boolPrintFlagsFinalfalse{product}
boolPrintFlagsInitialfalse{product}
boolPrintGCfalse{manageable}
boolPrintGCApplicationConcurrentTimefalse{product}
boolPrintGCApplicationStoppedTimefalse{product}
boolPrintGCCausetrue{product}
boolPrintGCDateStampsfalse{manageable}
boolPrintGCDetailsfalse{manageable}
boolPrintGCIDfalse{manageable}
boolPrintGCTaskTimeStampsfalse{product}
boolPrintGCTimeStampsfalse{manageable}
boolPrintHeapAtGCfalse{productrw}
boolPrintHeapAtGCExtendedfalse{productrw}
boolPrintHeapAtSIGBREAKtrue{product}
boolPrintJNIGCStallsfalse{product}
boolPrintJNIResolvingfalse{product}
boolPrintOldPLABfalse{product}
boolPrintOopAddressfalse{product}
boolPrintPLABfalse{product}
boolPrintParallelOldGCPhaseTimesfalse{product}
boolPrintPromotionFailurefalse{product}
boolPrintReferenceGCfalse{product}
boolPrintSafepointStatisticsfalse{product}
intxPrintSafepointStatisticsCount300{product}
intxPrintSafepointStatisticsTimeout-1{product}
boolPrintSharedArchiveAndExitfalse{product}
boolPrintSharedDictionaryfalse{product}
boolPrintSharedSpacesfalse{product}
boolPrintStringDeduplicationStatisticsfalse{product}
boolPrintStringTableStatisticsfalse{product}
boolPrintTLABfalse{product}
boolPrintTenuringDistributionfalse{product}
boolPrintTieredEventsfalse{product}
boolPrintVMOptionsfalse{product}
boolPrintVMQWaitTimefalse{product}
boolPrintWarningstrue{product}
uintxProcessDistributionStride4{product}
boolProfileInterpretertrue{pdproduct}
boolProfileIntervalsfalse{product}
intxProfileIntervalsTicks100{product}
intxProfileMaturityPercentage20{product}
boolProfileVMfalse{product}
boolProfilerPrintByteCodeStatisticsfalse{product}
boolProfilerRecordPCfalse{product}
uintxPromotedPadding3{product}
uintxQueuedAllocationWarningCount0{product}
uintxRTMRetryCount5{ARCHproduct}
boolRangeCheckEliminationtrue{product}
intxReadPrefetchInstr0{ARCHproduct}
boolReassociateInvariantstrue{C2product}
boolReduceBulkZeroingtrue{C2product}
boolReduceFieldZeroingtrue{C2product}
boolReduceInitialCardMarkstrue{C2product}
boolReduceSignalUsagefalse{product}
intxRefDiscoveryPolicy0{product}
boolReflectionWrapResolutionErrorstrue{product}
boolRegisterFinalizersAtInittrue{product}
boolRelaxAccessControlCheckfalse{product}
ccstrReplayDataFile{product}
boolRequireSharedSpacesfalse{product}
uintxReservedCodeCacheSize50331648{pdproduct}
boolResizeOldPLABtrue{product}
boolResizePLABtrue{product}
boolResizeTLABtrue{pdproduct}
boolRestoreMXCSROnJNICallsfalse{product}
boolRestrictContendedtrue{product}
boolRewriteBytecodestrue{pdproduct}
boolRewriteFrequentPairstrue{pdproduct}
intxSafepointPollOffset256{C1pd
intxSafepointSpinBeforeYield2000{product}
boolSafepointTimeoutfalse{product}
intxSafepointTimeoutDelay10000{product}
boolScavengeBeforeFullGCtrue{product}
intxSelfDestructTimer0{product}
uintxSharedBaseAddress34359738368{product}
ccstrSharedClassListFile{product}
uintxSharedMiscCodeSize122880{product}
uintxSharedMiscDataSize4194304{product}
uintxSharedReadOnlySize16777216{product}
uintxSharedReadWriteSize16777216{product}
boolShowMessageBoxOnErrorfalse{product}
intxSoftRefLRUPolicyMSPerMB1000{product}
boolSpecialEncodeISOArraytrue{C2product}
boolSplitIfBlockstrue{C2product}
intxStackRedPages1{pdproduct}
intxStackShadowPages20{pdproduct}
boolStackTraceInThrowabletrue{product}
intxStackYellowPages2{pdproduct}
boolStartAttachListenerfalse{product}
intxStarvationMonitorInterval200{product}
boolStressLdcRewritefalse{product}
uintxStringDeduplicationAgeThreshold3{product}
uintxStringTableSize60013{product}
boolSuppressFatalErrorMessagefalse{product}
uintxSurvivorPadding3{product}
uintxSurvivorRatio8{product}
intxSuspendRetryCount50{product}
intxSuspendRetryDelay5{product}
intxSyncFlags0{product}
ccstrSyncKnobs{product}
intxSyncVerbose0{product}
uintxTLABAllocationWeight35{product}
uintxTLABRefillWasteFraction64{product}
uintxTLABSize0{product}
boolTLABStatstrue{product}
uintxTLABWasteIncrement4{product}
uintxTLABWasteTargetPercent1{product}
uintxTargetPLABWastePct10{product}
uintxTargetSurvivorRatio50{product}
uintxTenuredGenerationSizeIncrement20{product}
uintxTenuredGenerationSizeSupplement80{product}
uintxTenuredGenerationSizeSupplementDecay2{product}
intxThreadPriorityPolicy0{product}
boolThreadPriorityVerbosefalse{product}
uintxThreadSafetyMargin52428800{product}
intxThreadStackSize1024{pdproduct}
uintxThresholdTolerance10{product}
intxTier0BackedgeNotifyFreqLog10{product}
intxTier0InvokeNotifyFreqLog7{product}
intxTier0ProfilingStartPercentage200{product}
intxTier23InlineeNotifyFreqLog20{product}
intxTier2BackEdgeThreshold0{product}
intxTier2BackedgeNotifyFreqLog14{product}
intxTier2CompileThreshold0{product}
intxTier2InvokeNotifyFreqLog11{product}
intxTier3BackEdgeThreshold60000{product}
intxTier3BackedgeNotifyFreqLog13{product}
intxTier3CompileThreshold2000{product}
intxTier3DelayOff2{product}
intxTier3DelayOn5{product}
intxTier3InvocationThreshold200{product}
intxTier3InvokeNotifyFreqLog10{product}
intxTier3LoadFeedback5{product}
intxTier3MinInvocationThreshold100{product}
intxTier4BackEdgeThreshold40000{product}
intxTier4CompileThreshold15000{product}
intxTier4InvocationThreshold5000{product}
intxTier4LoadFeedback3{product}
intxTier4MinInvocationThreshold600{product}
boolTieredCompilationtrue{pdproduct}
intxTieredCompileTaskTimeout50{product}
intxTieredRateUpdateMaxTime25{product}
intxTieredRateUpdateMinTime1{product}
intxTieredStopAtLevel4{product}
boolTimeLinearScanfalse{C1product}
boolTraceBiasedLockingfalse{product}
boolTraceClassLoadingfalse{productrw}
boolTraceClassLoadingPreorderfalse{product}
boolTraceClassPathsfalse{product}
boolTraceClassResolutionfalse{product}
boolTraceClassUnloadingfalse{productrw}
boolTraceDynamicGCThreadsfalse{product}
boolTraceGen0Timefalse{product}
boolTraceGen1Timefalse{product}
ccstrTraceJVMTI{product}
boolTraceLoaderConstraintsfalse{productrw}
boolTraceMetadataHumongousAllocationfalse{product}
boolTraceMonitorInflationfalse{product}
boolTraceParallelOldGCTasksfalse{product}
intxTraceRedefineClasses0{product}
boolTraceSafepointCleanupTimefalse{product}
boolTraceSharedLookupCachefalse{product}
boolTraceSuspendWaitFailuresfalse{product}
intxTrackedInitializationLimit50{C2product}
boolTransmitErrorReportfalse{product}
boolTrapBasedNullChecksfalse{pdproduct}
boolTrapBasedRangeChecksfalse{C2pd
intxTypeProfileArgsLimit2{product}
uintxTypeProfileLevel111{pdproduct}
intxTypeProfileMajorReceiverPercent90{C2product}
intxTypeProfileParmsLimit2{product}
intxTypeProfileWidth2{product}
intxUnguardOnExecutionViolation0{product}
boolUnlinkSymbolsALotfalse{product}
boolUse486InstrsOnlyfalse{ARCHproduct}
boolUseAESfalse{product}
boolUseAESIntrinsicsfalse{product}
intxUseAVX99{ARCHproduct}
boolUseAdaptiveGCBoundaryfalse{product}
boolUseAdaptiveGenerationSizePolicyAtMajorCollectiontrue{product}
boolUseAdaptiveGenerationSizePolicyAtMinorCollectiontrue{product}
boolUseAdaptiveNUMAChunkSizingtrue{product}
boolUseAdaptiveSizeDecayMajorGCCosttrue{product}
boolUseAdaptiveSizePolicytrue{product}
boolUseAdaptiveSizePolicyFootprintGoaltrue{product}
boolUseAdaptiveSizePolicyWithSystemGCfalse{product}
boolUseAddressNopfalse{ARCHproduct}
boolUseAltSigsfalse{product}
boolUseAutoGCSelectPolicyfalse{product}
boolUseBMI1Instructionsfalse{ARCHproduct}
boolUseBMI2Instructionsfalse{ARCHproduct}
boolUseBiasedLockingtrue{product}
boolUseBimorphicInliningtrue{C2product}
boolUseBoundThreadstrue{product}
boolUseCLMULfalse{ARCHproduct}
boolUseCMSBestFittrue{product}
boolUseCMSCollectionPassingtrue{product}
boolUseCMSCompactAtFullCollectiontrue{product}
boolUseCMSInitiatingOccupancyOnlyfalse{product}
boolUseCRC32Intrinsicsfalse{product}
boolUseCodeCacheFlushingtrue{product}
boolUseCompilertrue{product}
boolUseCompilerSafepointstrue{product}
boolUseCompressedClassPointersfalse{lp64_product}
boolUseCompressedOopsfalse{lp64_product}
boolUseConcMarkSweepGCfalse{product}
boolUseCondCardMarkfalse{C2product}
boolUseContainerSupporttrue{product}
boolUseCountLeadingZerosInstructionfalse{ARCHproduct}
boolUseCountTrailingZerosInstructionfalse{ARCHproduct}
boolUseCountedLoopSafepointsfalse{C2product}
boolUseCounterDecaytrue{product}
boolUseDivModtrue{C2product}
boolUseDynamicNumberOfGCThreadsfalse{product}
boolUseFPUForSpillingfalse{C2product}
boolUseFastAccessorMethodstrue{product}
boolUseFastEmptyMethodstrue{product}
boolUseFastJNIAccessorstrue{product}
boolUseFastStosbfalse{ARCHproduct}
boolUseG1GCfalse{product}
boolUseGCLogFileRotationfalse{product}
boolUseGCOverheadLimittrue{product}
boolUseGCTaskAffinityfalse{product}
boolUseGHASHIntrinsicsfalse{product}
boolUseHeavyMonitorsfalse{product}
boolUseHugeTLBFSfalse{product}
boolUseInlineCachestrue{product}
boolUseInterpretertrue{product}
boolUseJumpTablestrue{C2product}
boolUseLWPSynchronizationtrue{product}
boolUseLargePagesfalse{pdproduct}
boolUseLargePagesInMetaspacefalse{product}
boolUseLargePagesIndividualAllocationfalse{pdproduct}
boolUseLinuxPosixThreadCPUClockstrue{product}
boolUseLockedTracingfalse{product}
boolUseLoopCountertrue{product}
boolUseLoopInvariantCodeMotiontrue{C1product}
boolUseLoopPredicatetrue{C2product}
boolUseMathExactIntrinsicstrue{C2product}
boolUseMaximumCompactionOnSystemGCtrue{product}
boolUseMembarfalse{pdproduct}
boolUseMontgomeryMultiplyIntrinsicfalse{C2product}
boolUseMontgomerySquareIntrinsicfalse{C2product}
boolUseMulAddIntrinsicfalse{C2product}
boolUseMultiplyToLenIntrinsicfalse{C2product}
boolUseNUMAfalse{product}
boolUseNUMAInterleavingfalse{product}
boolUseNewLongLShiftfalse{ARCHproduct}
boolUseOSErrorReportingfalse{pdproduct}
boolUseOldInliningtrue{C2product}
boolUseOnStackReplacementtrue{pdproduct}
boolUseOnlyInlinedBimorphictrue{C2product}
boolUseOprofilefalse{product}
boolUseOptoBiasInliningtrue{C2product}
boolUsePSAdaptiveSurvivorSizePolicytrue{product}
boolUseParNewGCfalse{product}
boolUseParallelGCfalse{product}
boolUseParallelOldGCfalse{product}
boolUsePerfDatatrue{product}
boolUsePopCountInstructionfalse{product}
boolUseRDPCForConstantTableBasefalse{C2product}
boolUseRTMDeoptfalse{ARCHproduct}
boolUseRTMLockingfalse{ARCHproduct}
boolUseSHAfalse{product}
boolUseSHA1Intrinsicsfalse{product}
boolUseSHA256Intrinsicsfalse{product}
boolUseSHA512Intrinsicsfalse{product}
boolUseSHMfalse{product}
intxUseSSE99{product}
boolUseSSE42Intrinsicsfalse{product}
boolUseSerialGCfalse{product}
boolUseSharedSpacestrue{product}
boolUseSignalChainingtrue{product}
boolUseSquareToLenIntrinsicfalse{C2product}
boolUseStoreImmI16true{ARCHproduct}
boolUseStringDeduplicationfalse{product}
boolUseSuperWordtrue{C2product}
boolUseTLABtrue{pdproduct}
boolUseThreadPrioritiestrue{pdproduct}
boolUseTransparentHugePagesfalse{product}
boolUseTypeProfiletrue{product}
boolUseTypeSpeculationtrue{C2product}
boolUseUnalignedLoadStoresfalse{ARCHproduct}
boolUseVMInterruptibleIOfalse{product}
boolUseXMMForArrayCopyfalse{product}
boolUseXmmI2Dfalse{ARCHproduct}
boolUseXmmI2Ffalse{ARCHproduct}
boolUseXmmLoadAndClearUppertrue{ARCHproduct}
boolUseXmmRegToRegMoveAllfalse{ARCHproduct}
boolVMThreadHintNoPreemptfalse{product}
intxVMThreadPriority-1{product}
intxVMThreadStackSize1024{pdproduct}
intxValueMapInitialSize11{C1product}
intxValueMapMaxLoopSize8{C1product}
intxValueSearchLimit1000{C2product}
boolVerifyMergedCPBytecodestrue{product}
boolVerifySharedSpacesfalse{product}
intxWorkAroundNPTLTimedWaitHang1{product}
uintxYoungGenerationSizeIncrement20{product}
uintxYoungGenerationSizeSupplement80{product}
uintxYoungGenerationSizeSupplementDecay8{product}
uintxYoungPLABSize4096{product}
boolZeroTLABfalse{product}
intxhashCode5{product}

到此这篇关于Java启动参数(-, -X, -XX参数)的使用的文章就介绍到这了,更多相关Java启动参数 内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

您可能感兴趣的文章:
阅读全文