Skip to content

-XX:ParallelGCMaxThreads

This option specifies the maximum number of threads that can be used during parallel operations of the garbage collector. Unlike -XX:ParallelGCThreads, this option does not enforce a thread count, but can be used to allow the garbage collector to adjust the number of parallel GC threads, if used with the Adaptive GC Threading option.

Syntax

    -XX:ParallelGCMaxThreads=<number>

Where <number> is the maximum number of threads that can be used for parallel operations.

This option is directly mapped to -Xgcmaxthreads.