Using [Ehcache ][1], after Java app works 2.5 days, I have this statistic
cacheHits: 31185262, approximate 131 per sec
cacheMisses: 4642979, approximate 19 per sec
evictedCount: 4106931, approximate 17 per sec
and last hour it looks like
cacheHits: 60 per sec
cacheMisses: 57 per sec
evictedCount: 53 per sec
size of cache=400000, items never expire.
Why does it happen?
[1]:http://ehcache.org/ from what you've posted, how can you tell that the entries being evicted are "recently used"? Are you sure that your application isn't just accessing a wide variety of items in your cache, both recently used and not-recently-used?
以上就是 ehcache LRU evicting recently used entries的详细内容,更多请关注web前端其它相关文章!