In HotSpot JVM GC Tuning Guide the UseGCOverheadLimit
option is mentioned only on the pages about CMS and Parallel GCs. Additionally, on GC Ergonomics doc page the related options GCTimeLimit
and GCHeapFreeLimit
are mentioned like if they work only with Parallel GC:
The parallel garbage collector (UseParallelGC) throws an out-of-memory exception if an excessive amount of time is being spent collecting a small amount of the heap. To avoid this exception, you can increase the size of the heap. You can also set the parameters -XX:GCTimeLimit=time-limit and -XX:GCHeapFreeLimit=space-limit [...]
Are those options supported with -XX:+UseG1GC
?