Created
July 12, 2011 01:21
-
-
Save sharrissf/1077193 to your computer and use it in GitHub Desktop.
Ehcache Bytes Based Tuning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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