How to read SOLR cache statistics?

2012-04-13 Thread Kashif Khan
Does anyone explain what does the following parameters mean in SOLR cache
statistics?

*name*:  queryResultCache   
*class*:  org.apache.solr.search.LRUCache   
*version*:  1.0   
*description*:  LRU Cache(maxSize=512, initialSize=512)   
*stats*:  lookups : 98 
*hits *: 59 
*hitratio *: 0.60 
*inserts *: 41 
*evictions *: 0 
*size *: 41 
*warmupTime *: 0 
*cumulative_lookups *: 98 
*cumulative_hits *: 59 
*cumulative_hitratio *: 0.60 
*cumulative_inserts *: 39 
*cumulative_evictions *: 0 

AND also this


*name*:  fieldValueCache   
*class*:  org.apache.solr.search.FastLRUCache   
*version*:  1.0   
*description*:  Concurrent LRU Cache(maxSize=1, initialSize=10,
minSize=9000, acceptableSize=9500, cleanupThread=false)   
*stats*:  *lookups *: 8 
*hits *: 4 
*hitratio *: 0.50 
*inserts *: 2 
*evictions *: 0 
*size *: 2 
*warmupTime *: 0 
*cumulative_lookups *: 8 
*cumulative_hits *: 4 
*cumulative_hitratio *: 0.50 
*cumulative_inserts *: 2 
*cumulative_evictions *: 0 
*item_ABC *:
{field=ABC,memSize=340592,tindexSize=1192,time=1360,phase1=1344,nTerms=7373,bigTerms=1,termInstances=11513,uses=4}
 
*item_BCD *:
{field=BCD,memSize=341248,tindexSize=1952,time=1688,phase1=1688,nTerms=8075,bigTerms=0,termInstances=13510,uses=2}
 
 
Without understanding these terms i cannot configure server for better cache
usage. The point is searches are very slow. These stats were taken when
server was down and restarted. I just want to understand what these terms
mean actually


--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-read-SOLR-cache-statistics-tp3907294p3907294.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to read SOLR cache statistics?

2012-04-13 Thread Li Li
http://wiki.apache.org/solr/SolrCaching

On Fri, Apr 13, 2012 at 2:30 PM, Kashif Khan uplink2...@gmail.com wrote:

 Does anyone explain what does the following parameters mean in SOLR cache
 statistics?

 *name*:  queryResultCache
 *class*:  org.apache.solr.search.LRUCache
 *version*:  1.0
 *description*:  LRU Cache(maxSize=512, initialSize=512)
 *stats*:  lookups : 98
 *hits *: 59
 *hitratio *: 0.60
 *inserts *: 41
 *evictions *: 0
 *size *: 41
 *warmupTime *: 0
 *cumulative_lookups *: 98
 *cumulative_hits *: 59
 *cumulative_hitratio *: 0.60
 *cumulative_inserts *: 39
 *cumulative_evictions *: 0

 AND also this


 *name*:  fieldValueCache
 *class*:  org.apache.solr.search.FastLRUCache
 *version*:  1.0
 *description*:  Concurrent LRU Cache(maxSize=1, initialSize=10,
 minSize=9000, acceptableSize=9500, cleanupThread=false)
 *stats*:  *lookups *: 8
 *hits *: 4
 *hitratio *: 0.50
 *inserts *: 2
 *evictions *: 0
 *size *: 2
 *warmupTime *: 0
 *cumulative_lookups *: 8
 *cumulative_hits *: 4
 *cumulative_hitratio *: 0.50
 *cumulative_inserts *: 2
 *cumulative_evictions *: 0
 *item_ABC *:

 {field=ABC,memSize=340592,tindexSize=1192,time=1360,phase1=1344,nTerms=7373,bigTerms=1,termInstances=11513,uses=4}
 *item_BCD *:

 {field=BCD,memSize=341248,tindexSize=1952,time=1688,phase1=1688,nTerms=8075,bigTerms=0,termInstances=13510,uses=2}

 Without understanding these terms i cannot configure server for better
 cache
 usage. The point is searches are very slow. These stats were taken when
 server was down and restarted. I just want to understand what these terms
 mean actually


 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/How-to-read-SOLR-cache-statistics-tp3907294p3907294.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: How to read SOLR cache statistics?

2012-04-13 Thread Kashif Khan
Hi Li Li,

I have been through that WIKI before but that does not explain what is
*evictions*, *inserts*, *cumulative_inserts*, *cumulative_evictions*,
*hitratio *and all. These terms are foreign to me. What does the following
line mean? 

*item_ABC :
{field=ABC,memSize=340592,tindexSize=1192,time=1360,phase1=1344,nTerms=7373,bigTerms=1,termInstances=11513,uses=4}
*

I want that kind of explanation. I have read the wiki and the comments in
the solrconfig.xml file about all these things but does say how to read the
stats which is very *important!!!*.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-read-SOLR-cache-statistics-tp3907294p3907633.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to read SOLR cache statistics?

2012-04-13 Thread Erick Erickson
Well, the place to start is here:
*stats*:  lookups : 98
*hits *: 59
*hitratio *: 0.60
*inserts *: 41
*evictions *: 0
*size *: 41

the important bits are hitratio and evictions.
Caches only really start to show their stuff
when the hit ratio is quite high. That's
the percentage of requests that are satisfied
by entries already in the cache. You want
this number to be as high as possible, +0.90.

evictions are the number of entries that have been
removed from the cache. The pre-configured
number is usually 512, so when the 513th entry
is inserted in the cache, some are removed
to make room and tallied in the evictions
section.

Do note that some of the caches (documentCache
in particular) will rarely have a huge hit ratio due
to its nature, ditto with queryResultCache so you
can temporarily ignore those.

Best
Erick

On Fri, Apr 13, 2012 at 6:28 AM, Kashif Khan uplink2...@gmail.com wrote:
 Hi Li Li,

 I have been through that WIKI before but that does not explain what is
 *evictions*, *inserts*, *cumulative_inserts*, *cumulative_evictions*,
 *hitratio *and all. These terms are foreign to me. What does the following
 line mean?

 *item_ABC :
 {field=ABC,memSize=340592,tindexSize=1192,time=1360,phase1=1344,nTerms=7373,bigTerms=1,termInstances=11513,uses=4}
 *

 I want that kind of explanation. I have read the wiki and the comments in
 the solrconfig.xml file about all these things but does say how to read the
 stats which is very *important!!!*.

 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/How-to-read-SOLR-cache-statistics-tp3907294p3907633.html
 Sent from the Solr - User mailing list archive at Nabble.com.