David Spades wrote:I am curious as to where ehcache stores its data? in heap? RAM? disk? file?
There are many options, so all of the above.
Regardless of where the data is actually stored, one of the neat features about ehCache is that it can maintain a cache across multiple JVM's even across multiple physical machines. This is handy when running an application in a cluster. The size of the cache is configurable.
One of the really neat features, in my opinion, is their offering called BigMemory which is an off heap in memory database. Because it is off heap the GC isn't interested in it which means that performance is really good and isn't hindered by the GC doing 'stop the world' clean ups all the while. EhCache manages the memory completely.