Ehcache 2.10.6 | Product Documentation | Ehcache Operations Guide | Tuning Garbage Collection | Tuning the Garbage Collector
 
Tuning the Garbage Collector
Tuning suggestion for virtual machines with large heaps using caching:
java ... -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC
-XX:NewSize=<1/4 of total heap size> -XX:SurvivorRatio=16
Note that it is better to use -XX:+DisableExplicitGC, instead of calling System.gc(). It also helps to use the low pause collector -XX:+UseConcMarkSweepGC.

Copyright © 2010-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.