2 Garbage Collectors
This topic describes garbage collection tuning options available in Oracle JRockit and HotSpot, and compares their functionality and performance.
Tuning Garbage Collection
The following table lists important garbage collection (GC) tuning options available in Oracle JRockit and HotSpot:
Table 2-1 Garbage Collectors
Oracle JRockit Garbage Collectors | HotSpot Garbage Collectors | Notes |
---|---|---|
Throughput collector set using any of these options:
|
Throughput collector:
|
The number of parallel GC threads can be controlled using
-XX:ParallelGCThreads=n .
|
Low latency collector set using any of the following options:
|
-XX:+UseG1GC
Or Note: The CMS collector was deprecated in JDK 9. |
The HotSpot offers a choice between the two mostly concurrent collectors:
The Garbage-First Garbage Collector is the default collector. |