
xdmp:server-status( $host-id as xs:unsignedLong, $server-id as xs:unsignedLong* ) as element(server-status)*
Returns the status of an app-server on a host.
| Parameters | |
|---|---|
| host-id | A host ID. |
| server-id | One or more server IDs (HTTP, XDBC, ODBC, webDAV, or Task). |
http://marklogic.com/xdmp/privileges/status
The structure of the data returned is as follows:
server-idserver-namehost-iderrorserver-kindenabledportrootmodulesdatabasessl-certificate-templatelast-logindisplay-last-loginaddressbacklogthreadsmax-threadsrequest-timeoutkeep-alive-timeoutsession-timeoutstatic-expiresmax-time-limitdefault-time-limitmax-inference-sizedefault-inference-sizecollationmulti-version-concurrency-controldistribute-timestampsauthenticationdefault-userprivilegeconcurrent-request-limitdefault-xquery-versioncurrent-timerequest-statusesThis is a complex element with the following element children:
request-statusThis is a complex element with the following element children:
request-idserver-idhost-idtransaction-idcanceledmodulesdatabaserootrequest-kindrequest-textrequest-rewritten-textupdatestart-timetime-limitmax-time-limitlock-countread-sizeuserclient-addresstrigger-depthexpanded-tree-cache-hitsexpanded-tree-cache-missesrequest-stateprofiling-allowedprofiling-enableddebugging-alloweddebugging-statusretry-countexpr-idwhere-stoppedrequest-ratequeue-sizequeue-limitexpanded-tree-cache-hitsexpanded-tree-cache-missesexpanded-tree-cache-hit-rateexpanded-tree-cache-miss-ratefs-program-cache-hitsfs-program-cache-missesdb-program-cache-hitsdb-program-cache-missesenv-program-cache-hitsenv-program-cache-missesfs-main-module-seq-cache-hitsfs-main-module-seq-cache-missesdb-main-module-seq-cache-hitsdb-main-module-seq-cache-missesfs-lib-module-cache-hitsfs-lib-module-cache-missesdb-lib-module-cache-hitsdb-lib-module-cache-missesfs-schema-cache-hitsfs-schema-cache-missesdb-schema-cache-hitsdb-schema-cache-missesenv-schema-cache-hitsenv-schema-cache-misseshostsThis is a complex element with the following element children:
hostThis is a complex element with the following element children:
host-nameround-trip-countround-trip-timeround-trip-rateround-trip-loadoutput-sgml-character-entitiesoutput-encodingdefault-error-formaterror-handlerurl-rewriterrequest-timeserver-receive-bytesserver-receive-timeserver-receive-rateserver-receive-loadserver-send-bytesserver-send-timeserver-send-rateserver-send-load
xdmp:server-status(xdmp:host(),xdmp:server("Admin"))
=>
<server-status xmlns="http://marklogic.com/xdmp/status/server">
<server-id>4492507232107144149</server-id>
<server-name>Admin</server-name>
<host-id>13264574555735898770</host-id>
<server-kind>http-server</server-kind>
<port>8009</port>
<root>Admin\</root>
<modules>0</modules>
<database>5496769417926491762</database>
<ssl-certificate-template>0</ssl-certificate-template>
<last-login>9823948029384029384</last-login>
<display-last-login>true</display-last-login>
<backlog>512</backlog>
<threads>2</threads>
<max-threads>32</max-threads>
<request-timeout>30</request-timeout>
<keep-alive-timeout>5</keep-alive-timeout>
<session-timeout>3600</session-timeout>
<max-time-limit>3600</max-time-limit>
<default-time-limit>600</default-time-limit>
<collation>http://marklogic.com/collation/</collation>
<max-inference-size>500</max-inference-size>
<default-inference-size>100</default-inference-size>
<authentication>basic</authentication>
<default-user>8216129598321388485</default-user>
<privilege>0</privilege>
<default-xquery-version>1.0-ml</default-xquery-version>
<current-time>2007-03-29T14:43:00.819-07:00</current-time>
<request-statuses>
<request-status>
<request-id>15629296310429871822</request-id>
<server-id>4492507232107144149</server-id>
<host-id>13264574555735898770</host-id>
<canceled>false</canceled>
<modules>0</modules>
<database>5496769417926491762</database>
<root>Admin\</root>
<request-kind>invoke</request-kind>
<request-text>/cluster-status.xqy</request-text>
<update>false</update>
<start-time>2007-03-29T14:42:52.905-07:00</start-time>
<time-limit>600</time-limit>
<max-time-limit>3600</max-time-limit>
<lock-count>100</lock-count>
<read-size>100000</read-size>
<user>8216129598321388485</user>
<client-address>127.0.0.1</client-address>
<trigger-depth>0</trigger-depth>
<expanded-tree-cache-hits>0</expanded-tree-cache-hits>
<expanded-tree-cache-misses>0</expanded-tree-cache-misses>
<request-state>running</request-state>
<profiling-allowed>false</profiling-allowed>
<profiling-enabled>false</profiling-enabled>
<debugging-allowed>false</debugging-allowed>
<debugging-status>detached</debugging-status>
</request-status>
</request-statuses>
<request-rate>0.0639857</request-rate>
<expanded-tree-cache-hits>759</expanded-tree-cache-hits>
<expanded-tree-cache-misses>185</expanded-tree-cache-misses>
<expanded-tree-cache-hit-rate>0.272918</expanded-tree-cache-hit-rate>
<expanded-tree-cache-miss-rate>0</expanded-tree-cache-miss-rate>
<fs-program-cache-hits>9</fs-program-cache-hits>
<fs-program-cache-misses>40</fs-program-cache-misses>
<db-program-cache-hits>0</db-program-cache-hits>
<db-program-cache-misses>0</db-program-cache-misses>
<env-program-cache-hits>0</env-program-cache-hits>
<env-program-cache-misses>0</env-program-cache-misses>
<fs-main-module-seq-cache-hits>0</fs-main-module-seq-cache-hits>
<fs-main-module-seq-cache-misses>19</fs-main-module-seq-cache-misses>
<db-main-module-seq-cache-hits>0</db-main-module-seq-cache-hits>
<db-main-module-seq-cache-misses>0</db-main-module-seq-cache-misses>
<fs-lib-module-cache-hits>412</fs-lib-module-cache-hits>
<fs-lib-module-cache-misses>23</fs-lib-module-cache-misses>
<db-lib-module-cache-hits>0</db-lib-module-cache-hits>
<db-lib-module-cache-misses>0</db-lib-module-cache-misses>
</server-status>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.