This chapter describes garbage collection tuning options available in Oracle JRockit and HotSpot and compares their functionality and performance.
Note:
Some of the tools described in this document require a commercial license for use in production. To learn more about commercial features and how to enable them, seehttp://www.oracle.com/technetwork/java/javaseproducts/
.The following table lists important garbage collection (GC) tuning options available in Oracle JRockit and HotSpot.
Oracle JRockit Garbage Collectors | HotSpot Garbage Collectors | Note |
---|---|---|
Throughput collector set using any of these options:
|
Throughput collector:
|
On Server-class machines, throughput collector is the default collector. Since JDK 7u4, using The number of parallel GC threads can be controlled using |
Low latency collector set using any of the following options:
|
Or
|
The Java HotSpot VM offers a choice between two mostly concurrent collectors:
|
|
(see note) |
There is no real-time deterministic collector available in HotSpot. However G1 collector (enabled using Note that |
For further GC tuning, refer to the following document:
http://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/