Tuning the Serial Collector
Serial GC is the default collector for single CPU systems or containers.
It also works well for small workloads where pause time and throughput
are of no concern. SerialGC is very efficient, because it does all of
its work on one thread, and therefore, it does not have the overhead of
inter-thread communication. If your application runs in a system with
two or more CPUs, and you wish to run garbage collection with only one
CPU, use –XX:+UseSerialGC to enable this collector.
The JDK 8 Hotspot Virtual Machine Garbage Collection Tuning Guide is written primarily about Serial GC.
Last reviewed on Sat Feb 01 2025 00:00:00 GMT+0000 (Coordinated Universal Time)