A set of useful Garbage First (G1) Collector links:
http://blog.mgm-tp.com/2014/04/controlling-gc-pauses-with-g1-collector/http://www.oracle.com/technetwork/articles/java/g1gc-1984535.htmlhttp://www.slideshare.net/SimoneBordet/g1-garbage-collector-details-and-tuninghttp://www.slideshare.net/MonicaBeckwith/garbage-first-garbage-collector-g1-gc-migration-to-expectations-and-advanced-tuning Phases: Young Garbage Collections, Mixed Garbage Collections, FullGC
Hints:
- Use only -Xms, -Xmx and a pause time goal -XX:MaxGCPauseMillis.
- When "to-space exhausted" events happen, it could mean you have a very tight heap allocated for your application. The easiest approach to resolve this is increasing your heap size if it's possible.