Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have just started using Apache Solr 4.0.0 on Linux on a internal project, after having deployed Solr 1.4.1 and then 3.5.0 for a few years now.

From my searches, it would seem that most people are still using 3.x. In fact, all the munin plugins I can find (see list below) refer to an /admin/stats.jsp page that apparently, AFAIK, doesn't exist in Solr 4.0 anymore.

Later on I found this issue in the Solr bug tracker, SOLR-1750, which seems to point to a snippet that you need to add this snippet into your solrconfig.xml:

<requestHandler
    name="/admin/stats" 
    class="org.apache.solr.handler.admin.SolrInfoMBeanHandler" />

However, trying to go to /admin/mbeans on my Solr 4 install gives me back some XML with information:

<response>
  <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">1</int>
  </lst>
  <lst name="solr-mbeans">
    <lst name="CORE">
    <lst name="core">
    <str name="class">mycore</str>
    <str name="version">1.0</str>
    <str name="description">SolrCore</str>
    <str name="src">$URL: https://svn.apache.org/repos/...</str>
  </lst>

  ...

  <lst name="QUERYHANDLER">
    <lst name="/admin/system">
      <str name="class">org.apache.solr.handler.admin.SystemInfoHandler</str>
      <str name="version">4.0.0.2012.10.06.03.04.33</str>
      <str name="description">Get System Info</str>
      ...
  </lst>

But I still can't find anything related to statistics like queries or queries per second, used memory, etc... that have to be somewhere, since the web admin page clearly shows it.

I'll have to do more digging around in the Solr documentation, but maybe someone out there knows and has already updated their Solr munin plugins for Solr 4.0?

share|improve this question

1 Answer 1

/admin/mbeans?stats=true is what you want!

share|improve this answer
    
Thanks! I see now there's a avgTimePerRequest there, so I understand ?stats=true does the trick. I will try to research some more to see if someone, somewhere has already gone through the work of writing (or changing) the munin plugins that can correctly expose this information. That's the only thing I need. –  cosimo Jan 4 '13 at 17:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.