It might be because LRUCache by default will try to evict its entries on each call to put and putAll. LRUCache is built on top of java's LinkedHashMap. Check the javadoc of removeEldestEntry <http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMap.html#removeEldestEntry%28java.util.Map.Entry%29>
Try using LFUCache and a separate cleanup thread .. We have been using that for over 2 yrs now without any issues .. For comparison of Cache in solr you can check this link <https://cwiki.apache.org/confluence/display/solr/Query+Settings+in+SolrConfig> On 20 March 2015 at 04:05, Sergey Shvets <ser...@bintime.com> wrote: > LRUCache It -- Thanks & Regards Umesh Prasad Tech Lead @ flipkart.com in.linkedin.com/pub/umesh-prasad/6/5bb/580/