Skip to content

CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit www.eclipse.org/openj9/docs

-XX:ParallelGCThread

This Oracle HotSpot option specifies the number of threads that are used during parallel operations of the default garbage collector. This option is recognized by OpenJ9 and provided for compatibility.

Notes:

This option enforces the thread count and cannot be used with the -XX:+AdaptiveGCThreading option, which enables the garbage collector to adjust the number of parallel threads based on heuristics. If you want to use -XX:+AdaptiveGCThreading, use -XX:ParallelGCMaxThreads instead of -XX:ParallelGCThreads.

Syntax

    -XX:ParallelGCThreads=<number>

Where <number> is the number of threads that are used for parallel operations.

Within OpenJ9 this option is directly mapped to -Xgcthreads.