Performance of the garbage collector is one key feature to the overall performance of any
Java application. For many applications, though, the only tuning required is to select the ap-
propriate GC algorithm and, if needed, to increase the heap size of the application. Adaptive
sizing will then allow the JVM to autotune its behavior to provide good performance using
the given heap.
More complex applications will require additional tuning, particularly for specific GC al-
gorithms. If the simple GC settings in this chapter do not provide the performance an applic-
ation requires, consult the tunings described in the next chapter.