Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp.cacheStatus

xdmp.cacheStatus(
   [host-id as (Number|String)[]]
) as Sequence

Summary

Returns the status of the caches as a Sequence of ObjectNodes.

Parameters
host-id A host ID. Default value is the local host.

Required Privileges

http://marklogic.com/xdmp/privileges/status

Example

xdmp.cacheStatus();
=>
{
  "hostId":"2485368722774099257",
  "hostName":"danny-1.marklogic.com",
  "compressedTreeCachePartitions":[
    {
      "partitionSize":64,
      "partitionTable":1.89999997615814,
      "partitionUsed":4,
      "partitionFree":96,
      "partitionOverhead":0
    }
  ],
  "expandedTreeCachePartitions":[
    {
      "partitionSize":128,
      "partitionTable":5.40000009536743,
      "partitionBusy":0,
      "partitionUsed":91,
      "partitionFree":8.69999980926514,
      "partitionOverhead":0.300000011920929
    }
  ],
  "listCachePartitions":[
    {
      "partitionSize":128,
      "partitionTable":1,
      "partitionBusy":0,
      "partitionUsed":1.20000004768372,
      "partitionFree":98.8000030517578,
      "partitionOverhead":0
    }
  ],
  "tripleCache":{
    "tripleCachePartitions":[
      {
        "partitionSize":128,
        "partitionBusy":0,
        "partitionUsed":0,
        "partitionFree":99.9000015258789
      }
    ]
  },
  "tripleValueCache":{
    "tripleValueCachePartitions":[
      {
        "partitionSize":64,
        "partitionBusy":0,
        "partitionUsed":0,
        "partitionFree":99.8000030517578
      }
    ]
  }
}

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.