Skip to content

CAUTION: This site is for reviewing draft documentation. For published content, visit www.eclipse.org/openj9/docs

-Xgcmaxthreads

Specifies the maximum number of threads that the garbage collector can use for parallel operations. This option behaves in the same way as -Xgcthreads but does not enforce a fixed thread count, which allows the garbage collector to adjust the thread count when used with the -XX:+AdaptiveGCThreading option.

Syntax

    -Xgcmaxthreads<number>

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