Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


7.19.10 -XX:ParallelGCThreads

-XX:ParallelGCThreads specifies the number of threads that can execute G1GC in parallel.

Description

-XX:ParallelGCThreads specifies the number of threads that can execute G1GC in parallel. This option is enabled when -XX:+UseG1GC is specified. We recommend that you use the default value for this option. However, if you want to change the value, set an appropriate value calculated based on the value measured during actual Java VM operation.

When Java VM starts, the number of GC threads specified in this option is created, and then processing is executed.

If 0 is specified for this option, the default value is set.

When specifying this option, note the following points:

Syntax

-XX:ParallelGCThreads=value

Specifiable values

value

Type: Integer

Specify a natural number.

Default value

If the definition item is omitted:
If the number of logical CPUs in the execution environment is 8 or less:

-XX:ParallelGCThreads=number_of_CPUs

If the number of logical CPUs in the execution environment is 9 or more:

-XX:ParallelGCThreads=(8 + (number_of_CPUs - 8)*(5 / 8))#

#:

The calculated value is rounded down to the nearest integer.

For example, when the number of logical CPUs is 4, the default value is 4: ParallelGCThreads = 4. Similarly, when the number of logical CPUs is 72, the default value is 48: ParallelGCThreads = 8 + (72 - 8)*(5 / 8) = 48.