[infinispan-dev] Eviction thread and purging expired entries

Mircea Markus mircea.markus at jboss.com
Wed Jul 21 09:24:20 EDT 2010


Hi,

Eviction thread does two things right now:
- evict stuff from DataContainer
- purge entries from a CacheStore

CacheStore.purge might slow down eviction as it is generally an expensive operation. It might not even be needed, if the users don't use expiration. 
What about: 
a) making EvictionThread.purgeCacheStore configurable. 
or/and
b) use another thread for purging the store. 

This doesn't came out of the blue, there's a user that has eviction+cache store configured with eviction thread wakeup set to 1 sec - he still gets OOM.

Wdyt?

Cheers,
Mircea


More information about the infinispan-dev mailing list