lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Umesh Prasad <umesh.i...@gmail.com>
Subject Re: Solr hangs / LRU operations are heavy on cpu
Date Fri, 20 Mar 2015 02:49:06 GMT
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 <sergey@bintime.com> wrote:

> LRUCache


It


-- 
Thanks & Regards
Umesh Prasad
Tech Lead @ flipkart.com

 in.linkedin.com/pub/umesh-prasad/6/5bb/580/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message