You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by dan sutton <da...@gmail.com> on 2010/11/18 11:52:57 UTC

JMX Cache values are wrong

Hi,

I've used three different JMX clients to query

solr/<core>:id=org.apache.solr.search.FastLRUCache,type=queryResultCache
and
solr/<core>:id=org.apache.solr.search.FastLRUCache,type=documentCache

beans and they appear to return old cache information.

As new searchers come online, the newer caches dosen't appear to be
registered perhaps?
I can see this when I query JMX for the 'description' attribute and
the regenerator JMX output shows a different
org.apache.solr.search.SolrIndexSearcher to that which appears in the
stats.jsp page.

Any ideas as to what's gone wrong ... anyone else experience this?

>From registry.jsp:

Solr Specification Version: 1.4.0.2010.09.10.17.10.36
Solr Implementation Version: 1.4.1-dev exported
Lucene Specification Version: 2.9.1
Lucene Implementation Version: 2.9.1 832363 - 2009-11-03 04:37:25

Cheers,
Dan

Re: JMX Cache values are wrong

Posted by Chris Hostetter <ho...@fucit.org>.
: I've used three different JMX clients to query
	...
: beans and they appear to return old cache information.
: 
: As new searchers come online, the newer caches dosen't appear to be
: registered perhaps?
: I can see this when I query JMX for the 'description' attribute and
: the regenerator JMX output shows a different
: org.apache.solr.search.SolrIndexSearcher to that which appears in the
: stats.jsp page.

Hmmm... using jconsole and the example jetty instance i can't reproduce 
this behavior (on trunk)

I can view details on those beans, and click the "refresh" button for 
those beans to see updated stats as requests come in.  When a new searcher 
is opened, those beans go away complete (jsonsole detects that they are 
gone and closes the active pane) and new beans come along which have the 
updated stats for the new cache instances.

Perhaps either the servlet container or JMX client you are using aren't 
recognizing when one bean goes away and a new one is registered with the 
same name?



-Hoss