-Option and Default Value
+ | 选项/默认值
|
- Description
+ | 说明
|
-XX:+UseG1GC
|
- Use the Garbage First (G1) Collector
+ | 使用 G1 (Garbage First) 垃圾收集器
|
@@ -565,7 +565,7 @@ This is the complete list of G1 GC switches. Remember to use the best practices
-XX:MaxGCPauseMillis=n
|
-Sets a target for the maximum GC pause time. This is a soft goal, and the JVM will make its best effort to achieve it.
+ | 设置最大GC停顿时间(GC pause time)指标(target). 这是一个软性指标(soft goal), JVM 会尽量去达成这个目标.
|
@@ -573,7 +573,7 @@ This is the complete list of G1 GC switches. Remember to use the best practices
-XX:InitiatingHeapOccupancyPercent=n
|
-Percentage of the (entire) heap occupancy to start a concurrent GC cycle. It is used by GCs that trigger a concurrent GC cycle based on the occupancy of the entire heap, not just one of the generations (e.g., G1). A value of 0 denotes 'do constant GC cycles'. The default value is 45.
+ | Percentage of the (entire) heap occupancy to start a concurrent GC cycle. It is used by GCs that trigger a concurrent GC cycle based on the occupancy of the entire heap, not just one of the generations (e.g., G1). A value of 0 denotes 'do constant GC cycles'. 默认值为 45.
|
@@ -581,7 +581,7 @@ This is the complete list of G1 GC switches. Remember to use the best practices
-XX:NewRatio=n
|
-Ratio of new/old generation sizes. The default value is 2.
+ | 新生代与老生代(new/old generation)的大小比例(Ratio). 默认值为 2.
|
@@ -589,7 +589,7 @@ This is the complete list of G1 GC switches. Remember to use the best practices
-XX:SurvivorRatio=n
|
-Ratio of eden/survivor space size. The default value is 8.
+ | eden/survivor 空间大小的比例(Ratio). 默认值为 8.
|
@@ -597,7 +597,7 @@ This is the complete list of G1 GC switches. Remember to use the best practices
-XX:MaxTenuringThreshold=n
|
-Maximum value for tenuring threshold. The default value is 15.
+ | 晋升年老代的最大临界值(tenuring threshold). 默认值为 15.
|
@@ -613,7 +613,7 @@ This is the complete list of G1 GC switches. Remember to use the best practices
-XX:ConcGCThreads=n
|
-Number of threads concurrent garbage collectors will use. The default value varies with the platform on which the JVM is running.
+ | 并发垃圾收集器使用的线程数量. 默认值随JVM运行的平台不同而不同.
|
@@ -621,7 +621,7 @@ This is the complete list of G1 GC switches. Remember to use the best practices
-XX:G1ReservePercent=n
|
- Sets the amount of heap that is reserved as a false ceiling to reduce the possibility of promotion failure. The default value is 10.
+ | Sets the amount of heap that is reserved as a false ceiling to reduce the possibility of promotion failure. 默认值为 10.
|
@@ -629,7 +629,7 @@ This is the complete list of G1 GC switches. Remember to use the best practices
-XX:G1HeapRegionSize=n
|
-With G1 the Java heap is subdivided into uniformly sized regions. This sets the size of the individual sub-divisions. The default value of this parameter is determined ergonomically based upon heap size. The minimum value is 1Mb and the maximum value is 32Mb.
+ | With G1 the Java heap is subdivided into uniformly sized regions. This sets the size of the individual sub-divisions. The default value of this parameter is determined ergonomically based upon heap size. 最小值是 1Mb ,最大值为 32Mb.
|
@@ -646,7 +646,7 @@ The final topic we need to cover is using logging information to analyze perform
You can set the detail to three different levels of detail.
-**(1) -verbosegc** (which is equivalent to **-XX:+PrintGC**) sets the detail level of the log to *fine*.
+**(1) -verbosegc** (等价于 **-XX:+PrintGC**) sets the detail level of the log to *fine*.
**Sample Output**