JDK-8198510 : Enable UseDynamicNumberOfGCThreads by default
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-02-21
  • Updated: 2018-03-30
  • Resolved: 2018-03-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11 b07Fixed
Related Reports
CSR :  
Relates :  
Sub Tasks
JDK-8199513 :  
Description
The VM currently starts a large amount of GC threads on systems with many CPUs regardless of the Java heap size.
This doesn't make sense for very small heap sizes.

The number of ParallelGCThreads which currently really get started can be observed by e.g.:
jdk/bin/java -Xmx128m -XX:+PrintFlagsFinal -version|grep GCThreads

The existing option UseDynamicNumberOfGCThreads should be enabled by default to prevent more threads than needed from getting started.