RFR(XS): 8198510: Limit GC threads for small Java heap

Doerr, Martin martin.doerr at sap.com
Wed Feb 21 13:48:34 UTC 2018


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 can be observed by e.g.:
jdk/bin/java -Xmx128m -XX:+PrintFlagsFinal -version|grep GCThreads

My proposal is to use up to 1 GC thread per 64 MB of heap:

Please review.

Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20180221/e1e19ddd/attachment.htm>

More information about the hotspot-gc-dev mailing list