A garbage collector (GC) can consume up a considerable amount of your resources. The Java Hotspot (TM) virtual machine provides a multitude of parameters to tune a GC (among several other components) for a specific application and its load. We have explored these optimizations in detail in cooperation with dynatrace Austria and have published it in a paper at the International Conference on Performance Engineering.
You can download our framework here and try it on your own application. Please look into the README file for a detailed description.
Please cite us as
The taming of the shrew: increasing performance by automatic parameter tuning for java garbage collectors
Philipp Lengauer and Hanspeter Mössenböck. International Conference on Performance Engineering 2014, ICPE’14
and ParamILS as
ParamILS: An Automatic Algorithm Configuration Framework
Frank Hutter, Holger H. Hoos, Kevin Leyton-Brown, and Thomas Stützle. Journal of Artificial Research 2009, volume 36, pages 267-306, 2009.