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). |
The structure of the data returned is as follows:
server-id
server-name
host-id
error
server-kind
enabled
port
root
modules
database
ssl-certificate-template
last-login
display-last-login
address
backlog
threads
max-threads
request-timeout
keep-alive-timeout
session-timeout
static-expires
max-time-limit
default-time-limit
max-inference-size
default-inference-size
collation
multi-version-concurrency-control
distribute-timestamps
authentication
default-user
privilege
concurrent-request-limit
default-xquery-version
current-time
request-statuses
This is a complex element with the following element children:
request-status
This is a complex element with the following element children:
request-id
server-id
host-id
transaction-id
canceled
modules
database
root
request-kind
request-text
request-rewritten-text
update
start-time
time-limit
max-time-limit
lock-count
read-size
user
client-address
trigger-depth
expanded-tree-cache-hits
expanded-tree-cache-misses
request-state
profiling-allowed
profiling-enabled
debugging-allowed
debugging-status
retry-count
expr-id
where-stopped
request-rate
queue-size
queue-limit
expanded-tree-cache-hits
expanded-tree-cache-misses
expanded-tree-cache-hit-rate
expanded-tree-cache-miss-rate
fs-program-cache-hits
fs-program-cache-misses
db-program-cache-hits
db-program-cache-misses
env-program-cache-hits
env-program-cache-misses
fs-main-module-seq-cache-hits
fs-main-module-seq-cache-misses
db-main-module-seq-cache-hits
db-main-module-seq-cache-misses
fs-lib-module-cache-hits
fs-lib-module-cache-misses
db-lib-module-cache-hits
db-lib-module-cache-misses
fs-schema-cache-hits
fs-schema-cache-misses
db-schema-cache-hits
db-schema-cache-misses
env-schema-cache-hits
env-schema-cache-misses
temporary-file-read-bytes
temporary-file-write-bytes
hosts
This is a complex element with the following element children:
host
This is a complex element with the following element children:
host-name
round-trip-count
round-trip-time
round-trip-rate
round-trip-load
output-sgml-character-entities
output-encoding
default-error-format
error-handler
url-rewriter
request-time
server-receive-bytes
server-receive-time
server-receive-rate
server-receive-load
server-send-bytes
server-send-time
server-send-rate
server-send-load
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.