DataStax Enterprise 3.0 Documentation

Viewing the status of the Solr core

You can use the Solr API to view the status of the core. For example, to view the status of the wiki.solr core after running the wikipedia demo, use this URL:

http://localhost:8983/solr/#/wiki.solr?action=STATUS

Output is:

../../_images/dse_search_core_status.png

Viewing the status of all cores

To view the status of all cores use this URL:

http://localhost:8983/solr/admin/cores?action=STATUS

For example, the URL for viewing the status of all cores in json format and the output is:

http://localhost:8983/solr/admin/cores?action=STATUS
  &wt=json&indent=on&omitHeader=on

{
   "defaultCoreName":"default.1367873019536859000",
   "initFailures":{},
   "status":{
     "wiki.solr":{
       "indexing":false,
       "name":"wiki.solr",
       "isDefaultCore":false,
       "instanceDir":"solr/",
       "dataDir":"/var/lib/cassandra/data/solr.data/wiki.solr/",
       "config":"solrconfig.xml",
       "schema":"schema.xml",
       "startTime":"2013-05-06T20:43:41.527Z",
       "uptime":2908719,
       "index":{
         "numDocs":3579,
         "maxDoc":3579,
         "version":241,
         "segmentCount":8,
         "current":true,
         "hasDeletions":false,

         "directory":"org.apache.lucene.store.NRTCachingDirectory
           :NRTCachingDirectory
         (org.apache.lucene.store.NIOFSDirectory@
         /private/var/lib/cassandra/data/solr.data/wiki.solr/index
         lockFactory=org.apache.lucene.store.NativeFSLockFactory@43824d2c;
         maxCacheMB=48.0 maxMergeSizeMB=4.0)",
         "userData":{"commitTimeMSec":"1367869224465"},
         "lastModified":"2013-05-06T19:40:24.465Z",
         "sizeInBytes":9760545,
         "size":"9.31 MB"}}}}

Viewing the status of field cache memory

The Solr field cache caches values for all indexed documents, which if left unchecked, can result in out-of-memory errors. To ensure that the jvm heap can accommodate the cache, monitor the status of the field cache. To view the status of the field cache memory usage, append &memory=true to the URL used to view the status of cores. For example, to view the field cache memory usage of the core, wiki.solr, after running the wikipedia demo, use this URL:

http://localhost:8983/solr/admin/cores?action=STATUS&memory=true

For example, the URL for viewing the field cache memory usage in json format and the output is:

http://localhost:8983/solr/admin/cores?action=STATUS
  &wt=json&indent=on&omitHeader=on
  &memory=true

<core status> . . .

"memory":{
  "unInvertedFields":{
    "totalSize":0,
    "totalReadableSize":"0 bytes"},
  "multiSegment":{
    "multiSegment":"StandardDirectoryReader(segments_4:241 _34(4.0.0.2):
    C521 _35(4.0.0.2):C519 _33(4.0.0.2):C484 _36(4.0.0.2):C501 _37(4.0.0.2):
    C388 _38(4.0.0.2):C419 _39(4.0.0.2):C370 _3a(4.0.0.2):C377)",
    "fieldCache":{
      "entriesCount":0},
    "totalSize":0},
  "segments":{
    "_34":{
      "segment":"_34",
      "docValues":{
        "norms":{
          "body":{
            "size":56,
            "readableSize":"56 bytes"},
          "date":{
            "size":56,
            "readableSize":"56 bytes"},
          "id":{
            "size":56,
            "readableSize":"56 bytes"},
          "title":{
            "size":56,
            "readableSize":"56 bytes"}}},
      "fieldCache":{
        "entriesCount":0},
      "totalSize":224},
    "_35":{
      "segment":"_35",
      "docValues":{
        "norms":{
          "body":{
            "size":56,
            "readableSize":"56 bytes"},
          "date":{
            "size":56,
            "readableSize":"56 bytes"},
          "id":{
            "size":56,
            "readableSize":"56 bytes"},
          "title":{
            "size":56,
            "readableSize":"56 bytes"}}},
. . .