Skip to content

Instantly share code, notes, and snippets.

@sharrissf
Created July 12, 2011 01:21
Show Gist options
  • Save sharrissf/1077193 to your computer and use it in GitHub Desktop.
Save sharrissf/1077193 to your computer and use it in GitHub Desktop.
Ehcache Bytes Based Tuning
//Go from this
<ehcache>
// to this
<ehcache maxBytesLocalHeap="100M" >
// or
<ehcache maxBytesLocalHeap="50%" >
//if you do it in code it's just this
Configuration cacheManagerConfiguration = new Configuration();
cacheManagerConfiguration.setMaxBytesLocalHeap("110m");
CacheManager cm = new CacheManager(cacheManagerConfiguration);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment