Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp:server-status

xdmp:server-status(
   $host-id as xs:unsignedLong,
   $server-id as xs:unsignedLong*
) as element(server-status)*

Summary

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).

Usage Notes

The structure of the data returned is as follows:

server-id

The server id.

server-name

The server name.

host-id

The unique key of the host

error

The error in processing server status.

server-kind

The kind of application server

enabled

The server is enabled.

port

The server socket bind internet port number.

root

The root document directory pathname.

modules

The ID of the database that contains application modules. If on the file-system, then 0.

database

The ID of the content database when applicable. In some cases, this is a forest ID or a random number (when neither a database ID nor a forest ID is available).

ssl-certificate-template

The certificate template.

last-login

The ID of the last login database.

display-last-login

Whether an appserver should display last-login information.

address

The server socket bind numeric internet address.

backlog

The socket listen backlog.

threads

The current number of active applicatiton server threads.

max-threads

The maximum number of application server threads allowed on each host in the group.

request-timeout

The request socket recv timeout, in seconds.

keep-alive-timeout

The keep-alive socket recv timeout, in seconds.

session-timeout

The session expiration timeout, in seconds.

static-expires

The static content expiration interval, in seconds.

max-time-limit

The upper bound for a request's time limit, in seconds.

default-time-limit

The default time limit for a request, in seconds.

max-inference-size

The upper bound for a request's inference size, in megabytes.

default-inference-size

The default inference size for a request, in megabytes.

collation

The default collation for queries.

multi-version-concurrency-control

distribute-timestamps

authentication

The authentication scheme to use for this server

default-user

The user used as the default user in application level authentication. Using the admin user as the default user is equivalent to turning security off.

privilege

The privilege restricting access to the server.

concurrent-request-limit

The concurrent request limit.

default-xquery-version

An application server's default XQuery language version.

current-time

The current time.

request-statuses

The requests being processed by the server.

This is a complex element with the following element children:

request-status

The request being processed by the server.

This is a complex element with the following element children:

request-id

A unique id for a request.

server-id

The server id.

host-id

The unique key of the host

transaction-id

The unique key of the transaction

canceled

Has this request been canceled.

modules

The ID of the database that contains application modules. If on the file-system, then 0.

database

The ID of the content database when applicable. In some cases, this is a forest ID or a random number (when neither a database ID nor a forest ID is available).

root

The root document directory pathname.

request-kind

The kind of request (for example, invoke, eval).

request-text

The request text.

request-rewritten-text

The rewritten request text.

update

Specifies if this request an update (true for update requests).

start-time

The time the operation started.

time-limit

The request's time limit, in seconds.

max-time-limit

The upper bound for a request's time limit, in seconds.

lock-count

The request's current limit on combined count for the number of times a read or a write lock was acquired.

read-size

The request's current limit on combined size read from disk (listSize+compressedTreeSize), in bytes.

user

The unique ID of the user executing the request.

client-address

The network address of a client

trigger-depth

The maximum depth of trigger invocation.

expanded-tree-cache-hits

The number of hits on the expanded cache.

expanded-tree-cache-misses

The number of misses on the expanded cache.

request-state

The state of a request

profiling-allowed

Is profiling allowed for this request.

profiling-enabled

Is profiling currently enabled for this request.

debugging-allowed

Is debugging allowed for this request.

debugging-status

The debugging status of the request.

retry-count

The number of retries on the request.

expr-id

The expression id.

where-stopped

Where the request is stopped.

request-rate

The rate of a request (requests/sec).

queue-size

The number of tasks in the server queue.

queue-limit

The maximum number size of the queue.

expanded-tree-cache-hits

The number of hits on the expanded cache.

expanded-tree-cache-misses

The number of misses on the expanded cache.

expanded-tree-cache-hit-rate

The average number of hits on the expanded cache.

expanded-tree-cache-miss-rate

The average number of misses on the expanded cache.

fs-program-cache-hits

The number of hits on the filesystem program cache.

fs-program-cache-misses

The number of misses on the filesystem program cache.

db-program-cache-hits

The number of hits on the database program cache.

db-program-cache-misses

The number of misses on the database program cache.

env-program-cache-hits

The number of hits on the XSLT environment program cache.

env-program-cache-misses

The number of misses on the XSLT environment program cache.

fs-main-module-seq-cache-hits

The number of hits on the filesystem main module sequence cache.

fs-main-module-seq-cache-misses

The number of misses on the filesystem main module sequence cache.

db-main-module-seq-cache-hits

The number of hits on the database main module sequence cache.

db-main-module-seq-cache-misses

The number of misses on the database main module sequence cache.

fs-lib-module-cache-hits

The number of hits on the filesystem library module cache.

fs-lib-module-cache-misses

The number of misses on the filesystem library module cache.

db-lib-module-cache-hits

The number of hits on the database library module cache.

db-lib-module-cache-misses

The number of misses on the database library module cache.

fs-schema-cache-hits

The number of hits on the filesystem schema cache.

fs-schema-cache-misses

The number of misses on the filesystem schema cache.

db-schema-cache-hits

The number of hits on the database schema cache.

db-schema-cache-misses

The number of misses on the database schema cache.

env-schema-cache-hits

The number of hits on the environment schema cache.

env-schema-cache-misses

The number of misses on the environment schema cache.

temporary-file-read-bytes

The total number of bytes read from temporary files for example for external sort and join.

temporary-file-write-bytes

The total number of bytes written to temporary files for example for external sort and join.

hosts

The host's view of all other hosts in the cluster.

This is a complex element with the following element children:

host

The host connection information.

This is a complex element with the following element children:

host-name

The internet host name.

round-trip-count

The total of round-trip communications between the App Server host and this host. A round trip is the completion of a request sent from the App Server host to another host in the cluster.

round-trip-time

The total time (as xs:dayTimeDuration) to complete the round trips from the App Server to this host.

round-trip-rate

The moving average data throughput of sending a request and receiving result in a round trip, in megabytes per second.

round-trip-load

Time threads spent in sending a request and receiving results in round-trips, in proportion to the elapsed time.

output-sgml-character-entities

The character entities to use during output.

output-encoding

The output encoding of the App Server.

default-error-format

The default error format for protocol errors. One of html,xml,json,compatiable

error-handler

The error handler used, if any.

url-rewriter

The url rewriter used, if any.

request-time

1 minute average of request time for this server.

server-receive-bytes

The number of bytes received over the network.

server-receive-time

The time (as xs:dayTimeDuration) to receive over the network.

server-receive-rate

The moving average of incoming network throughput, in megabytes per second.

server-receive-load

Network time threads spent receiving data, in proportion to the elapsed time.

server-send-bytes

The number of bytes sent over the network.

server-send-time

The time (as xs:dayTimeDuration) to send over the network.

server-send-rate

The moving average of outgoing network throughput, in megabytes per second.

server-send-load

Network time threads spent sending data, in proportion to the elapsed time.

Example

xdmp:server-status(xdmp:host(),xdmp:server("Admin"))
=>

<server-status xmlns="http://marklogic.com/xdmp/status/server">
  <server-id>3565340375921465160</server-id>
  <server-name>Admin</server-name>
  <host-id>2029679459428767605</host-id>
  <server-kind>http-server</server-kind>
  <enabled>true</enabled>
  <port>8001</port>
  <root>Admin/</root>
  <modules>0</modules>
  <database>1486763049203037807</database>
  <ssl-certificate-template>0</ssl-certificate-template>
  <last-login>0</last-login>
  <display-last-login>false</display-last-login>
  <backlog>512</backlog>
  <threads>32</threads>
  <max-threads>32</max-threads>
  <request-timeout>30</request-timeout>
  <keep-alive-timeout>5</keep-alive-timeout>
  <session-timeout>3600</session-timeout>
  <static-expires>3600</static-expires>
  <max-time-limit>10800</max-time-limit>
  <default-time-limit>600</default-time-limit>
  <max-inference-size>500</max-inference-size>
  <default-inference-size>100</default-inference-size>
  <collation>http://marklogic.com/collation/</collation>
  <multi-version-concurrency-control>contemporaneous</multi-version-concurrency-control>
  <distribute-timestamps>fast</distribute-timestamps>
  <authentication>digest</authentication>
  <default-user>10306463041007996463</default-user>
  <privilege>0</privilege>
  <concurrent-request-limit>0</concurrent-request-limit>
  <default-xquery-version>0.9-ml</default-xquery-version>
  <current-time>2023-12-20T19:42:29.118991-05:00</current-time>
  <request-statuses>
    <request-status>
      <request-id>3654465947461244406</request-id>
      <server-id>3565340375921465160</server-id>
      <host-id>2029679459428767605</host-id>
      <transaction-id>13344944782291568887</transaction-id>
      <canceled>false</canceled>
      <modules>0</modules>
      <database>1486763049203037807</database>
      <root>Admin/</root>
      <request-kind>invoke</request-kind>
      <request-text>/usage.xqy</request-text>
      <request-rewritten-text>/usage.xqy</request-rewritten-text>
      <update>false</update>
      <start-time>2023-12-20T19:42:28.616048-05:00</start-time>
      <time-limit>600</time-limit>
      <max-time-limit>10800</max-time-limit>
      <lock-count>0</lock-count>
      <read-size>0</read-size>
      <user>7071164303237443533</user>
      <client-address>::1</client-address>
      <trigger-depth>0</trigger-depth>
      <expanded-tree-cache-hits>82</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>
      <retry-count>0</retry-count>
    </request-status>
  </request-statuses>
  <request-rate>18.22022</request-rate>
  <queue-size>64</queue-size>
  <queue-limit>64</queue-limit>
  <expanded-tree-cache-hits>52313</expanded-tree-cache-hits>
  <expanded-tree-cache-misses>83</expanded-tree-cache-misses>
  <expanded-tree-cache-hit-rate>1471.912</expanded-tree-cache-hit-rate>
  <expanded-tree-cache-miss-rate>0</expanded-tree-cache-miss-rate>
  <fs-program-cache-hits>8226</fs-program-cache-hits>
  <fs-program-cache-misses>9</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>1</fs-main-module-seq-cache-hits>
  <fs-main-module-seq-cache-misses>4</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>143</fs-lib-module-cache-hits>
  <fs-lib-module-cache-misses>44</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>
  <fs-schema-cache-hits>0</fs-schema-cache-hits>
  <fs-schema-cache-misses>0</fs-schema-cache-misses>
  <db-schema-cache-hits>0</db-schema-cache-hits>
  <db-schema-cache-misses>0</db-schema-cache-misses>
  <env-schema-cache-hits>263305</env-schema-cache-hits>
  <env-schema-cache-misses>0</env-schema-cache-misses>
  <temporary-file-read-bytes>0</temporary-file-read-bytes>
  <temporary-file-write-bytes>0</temporary-file-write-bytes>
  <hosts/>
  <output-sgml-character-entities>none</output-sgml-character-entities>
  <output-encoding>UTF-8</output-encoding>
  <error-handler>/error-switch.xqy</error-handler>
  <url-rewriter>rewriter.xqy</url-rewriter>
  <request-time>0.357086</request-time>
  <server-receive-bytes>82570</server-receive-bytes>
  <server-receive-time>PT0.003173S</server-receive-time>
  <server-receive-rate>0</server-receive-rate>
  <server-receive-load>0</server-receive-load>
  <server-send-bytes>54815711</server-send-bytes>
  <server-send-time>PT0.04258S</server-send-time>
  <server-send-rate>1.299435</server-send-rate>
  <server-send-load>0</server-send-load>
</server-status> 

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