-XX:ParallelGCThreads sets how many threads the JVM uses for parallel garbage-collection work during stop-the-world phases, including young-generation evacuation. section 11.4.4
Use it when GC logs show long or frequent pauses alongside low worker utilization. Raising the value can distribute cleanup across more CPU cores; setting it too high can consume CPU needed by the application. section 11.4.4
[GC pause (G1 Evacuation Pause) (young), 0.124567 secs] Parallel Time: 115.2 ms, Workers: 2 (out of 8 available) Eden: 256M->0M(1024M), Survivors: 32M->64M, Heap: 2048M->1024M(4096M)
Inspect the pause duration, worker count, available workers, and heap changes before changing the setting. section 11.4.4
A low-worker pause
A G1 evacuation pause lasting 124.567 milliseconds uses only 2 of 8 available workers. Testing -XX:ParallelGCThreads=6 may improve CPU utilization and reduce pause time, but the result should be checked against application CPU usage. section 11.4.4
