SystemInformationRequestHandlers

SystemInformationRequestHandlers - Solr Wiki

 

There are a few requestHandlers that fetch various bits of information about the Solr instance, and a given core.

 

 

LukeRequestHandler

See LukeRequestHandler.

 

SystemInfoHandler

<!> Solr1.4

The SystemInfoHandler returns a snapshot of the operating environment of a given Solr instance: basic data, Solr & Lucene version data, Java VM information, JMX accessibility, and operation system. As of this writing, the servlet engine or embedded Solr status is not gathered.

 

Parameters

None.

Example Output

http://localhost:8983/solr/admin/system?indent=on

<lst name="core">
 <str name="schema">example</str>
 <str name="host">norskhaus</str>
 <date name="now">2010-07-06T05:49:12.405Z</date>
 <date name="start">2010-07-06T05:48:55.527Z</date>
 <lst name="directory">
  <str name="instance">C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example\
olr</str>
  <str name="data">C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example\.\so
r\data</str>
  <str name="index">C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example\sol
\data\index</str>
 </lst>
</lst>
<lst name="lucene">
 <str name="solr-spec-version">1.4.1.2010.07.01.16.02.55</str>
 <str name="solr-impl-version">1.4.2-dev 959792M - work - 2010-07-01 16:02:55</
tr>
 <str name="lucene-spec-version">2.9.3</str>
 <str name="lucene-impl-version">2.9.3 951790 - 2010-06-06 01:30:55</str>
</lst>
<lst name="jvm">
 <str name="version">14.0-b16</str>
 <str name="name">Java HotSpot(TM) 64-Bit Server VM</str>
 <int name="processors">2</int>
 <lst name="memory">
  <str name="free">88.1 MB</str>
  <str name="total">109.4 MB</str>
  <str name="max">910.2 MB</str>
  <str name="used">21.3 MB (%2.3)</str>
 </lst>
 <lst name="jmx">
  <str name="bootclasspath">C:\Program Files\Java\jdk1.6.0_14\jre\lib\resources
jar;C:\Program Files\Java\jdk1.6.0_14\jre\lib\rt.jar;C:\Program Files\Java\jdk1
6.0_14\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_14\jre\lib\jsse.ja
;C:\Program Files\Java\jdk1.6.0_14\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6
0_14\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_14\jre\classes</str>
  <str name="classpath">C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example
C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example\lib\jetty-6.1.3.jar;C:\
ygwin\home\work\open\solr-1.4\release-1.4.1\example\lib\jetty-util-6.1.3.jar;C:
cygwin\home\work\open\solr-1.4\release-1.4.1\example\lib\servlet-api-2.5-6.1.3.
ar;C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example\lib\jsp-2.1\ant-1.6.
.jar;C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example\lib\jsp-2.1\core-3
1.1.jar;C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example\lib\jsp-2.1\jsp
2.1.jar;C:\cygwin\home\work\open\solr-1.4\release-1.4.1\example\lib\jsp-2.1\jsp
api-2.1.jar</str>
  <arr name="commandLineArgs"/>
  <date name="startTime">2010-07-06T05:48:53.405Z</date>
  <long name="upTimeMS">19001</long>
 </lst>
</lst>
<lst name="system">
 <str name="name">Windows Vista</str>
 <str name="version">6.0</str>
 <str name="arch">amd64</str>
 <double name="systemLoadAverage">-1.0</double>
</lst>
</response>

 

SolrInfoMBeanHandler

<!> Solr3.1 This handler returns a full inventory of the SolrMBean objects in the instance. These include most of the heavyweight objects in Solr. It is generally a replacement for admin/stats.jsp, and makes rolling your own monitoring of Solr without using JMX much simpler.

 

Example URLs

Assuming you have this handler mapped to "/admin/mbeans" in solrconfig.xml and are running the example on port localhost:8983, visit:

 

ThreadDumpHandler

Gives a list of all of the threads in the Java VM. Equivalent to the Java thread dump feature.

SystemInformationRequestHandlers (last edited 2011-09-21 18:51:54 by EricPugh)

 
posted @ 2013-12-25 18:22  清新每一天  阅读(451)  评论(0编辑  收藏  举报