java - EhCache DiskStore is in memory -


i use ehcache memory cache loaded disk cache.

when dumping jvm of process, noticed ehcache stored in memory cache and diskstore object of cache.

the memory size of both getting big (diskstore in memory around 75% of memory cache).

i wondering why diskstore on disk and in memory, in addition normal memory cache ?

the cache caches data in memory speed of access. have load data memory use , bad idea remove disk because in memory.

saving disks resources waste of time in case disk space relative cheap , changing relatively expensive.


Comments