The Java HotSpot VM includes several garbage collectors that you can use to help optimize the performance of your application. A garbage collector is especially helpful if your application handles large amounts of data (multiple gigabytes), has many threads, and high transaction rates.
For descriptions of the available garbage collectors, see Garbage Collection Implementation in the Java Platform, Standard Edition HotSpot Virtual Machine Garbage Collection Tuning Guide.