
xdmp.serverStatus( host-id as (Number|String), server-id as (Number|String)[] ) as Sequence
Returns the status of an app-server on a host as a Sequence of ObjectNodes.
| 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:
serverIdserverNamehostIderrorserverKindenabledportrootmodulesdatabasesslCertificateTemplatelastLogindisplayLastLoginaddressbacklogthreadsmaxThreadsrequestTimeoutkeepAliveTimeoutsessionTimeoutstaticExpiresmaxTimeLimitdefaultTimeLimitmaxInferenceSizedefaultInferenceSizecollationmultiVersionConcurrencyControldistributeTimestampsauthenticationdefaultUserprivilegeconcurrentRequestLimitdefaultXqueryVersioncurrentTimerequestStatusesThis is an object with the following properties:
requestStatusThis is an object with the following properties:
requestIdserverIdhostIdtransactionIdcanceledmodulesdatabaserootrequestKindrequestTextrequestRewrittenTextupdatestartTimetimeLimitmaxTimeLimitlockCountreadSizeuserclientAddresstriggerDepthexpandedTreeCacheHitsexpandedTreeCacheMissesrequestStateprofilingAllowedprofilingEnableddebuggingAlloweddebuggingStatusretryCountexprIdwhereStoppedrequestRatequeueSizequeueLimitexpandedTreeCacheHitsexpandedTreeCacheMissesexpandedTreeCacheHitRateexpandedTreeCacheMissRatefsProgramCacheHitsfsProgramCacheMissesdbProgramCacheHitsdbProgramCacheMissesenvProgramCacheHitsenvProgramCacheMissesfsMainModuleSeqCacheHitsfsMainModuleSeqCacheMissesdbMainModuleSeqCacheHitsdbMainModuleSeqCacheMissesfsLibModuleCacheHitsfsLibModuleCacheMissesdbLibModuleCacheHitsdbLibModuleCacheMissesfsSchemaCacheHitsfsSchemaCacheMissesdbSchemaCacheHitsdbSchemaCacheMissesenvSchemaCacheHitsenvSchemaCacheMissestemporaryFileReadBytestemporaryFileWriteByteshostsThis is an object with the following properties:
hostThis is an object with the following properties:
hostNameroundTripCountroundTripTimeroundTripRateroundTripLoadoutputSgmlCharacterEntitiesoutputEncodingdefaultErrorFormaterrorHandlerurlRewriterrequestTimeserverReceiveBytesserverReceiveTimeserverReceiveRateserverReceiveLoadserverSendBytesserverSendTimeserverSendRateserverSendLoad
xdmp.serverStatus(xdmp.host(), xdmp.server("Admin"));
=>
{
"serverId": "8407613141968064453",
"serverName": "Admin",
"hostId": "11839325574213853126",
"serverKind": "http-server",
"enabled": true,
"port": 8001,
"root": "Admin/",
"modules": 0,
"database": "3400559362379060962",
"sslCertificateTemplate": 0,
"lastLogin": 0,
"displayLastLogin": false,
"backlog": 512,
"threads": 6,
"maxThreads": 32,
"requestTimeout": 30,
"keepAliveTimeout": 5,
"sessionTimeout": 3600,
"staticExpires": 3600,
"maxTimeLimit": 10800,
"defaultTimeLimit": 600,
"maxInferenceSize": 500,
"defaultInferenceSize": 100,
"collation": "http://marklogic.com/collation/",
"multiVersionConcurrencyControl": "contemporaneous",
"distributeTimestamps": "fast",
"authentication": "digest",
"defaultUser": "10306463041007996463",
"privilege": 0,
"concurrentRequestLimit": 0,
"defaultXqueryVersion": "0.9-ml",
"currentTime": "2023-12-20T15:12:31.248767-08:00",
"requestStatuses": [
{
"requestId": "16064303736585386373",
"serverId": "8407613141968064453",
"hostId": "11839325574213853126",
"transactionId": "17082573180877589468",
"canceled": false,
"modules": 0,
"database": "3400559362379060962",
"root": "Admin/",
"requestKind": "invoke",
"requestText": "/usage.xqy",
"requestRewrittenText": "/usage.xqy",
"update": false,
"startTime": "2023-12-20T15:12:29.181593-08:00",
"timeLimit": 598,
"maxTimeLimit": 10800,
"lockCount": 0,
"readSize": 0,
"user": "7071164303237443533",
"clientAddress": "10.69.24.170",
"triggerDepth": 0,
"expandedTreeCacheHits": 82,
"expandedTreeCacheMisses": 0,
"requestState": "running",
"profilingAllowed": false,
"profilingEnabled": false,
"debuggingAllowed": false,
"debuggingStatus": "detached",
"retryCount": 0
}
],
"requestRate": 0.597835779190064,
"queueSize": 0,
"queueLimit": 64,
"expandedTreeCacheHits": 153941,
"expandedTreeCacheMisses": 761,
"expandedTreeCacheHitRate": 66.1478271484375,
"expandedTreeCacheMissRate": 0,
"fsProgramCacheHits": 22634,
"fsProgramCacheMisses": 67,
"dbProgramCacheHits": 0,
"dbProgramCacheMisses": 0,
"envProgramCacheHits": 0,
"envProgramCacheMisses": 0,
"fsMainModuleSeqCacheHits": 9,
"fsMainModuleSeqCacheMisses": 14,
"dbMainModuleSeqCacheHits": 0,
"dbMainModuleSeqCacheMisses": 0,
"fsLibModuleCacheHits": 815,
"fsLibModuleCacheMisses": 144,
"dbLibModuleCacheHits": 0,
"dbLibModuleCacheMisses": 0,
"fsSchemaCacheHits": 0,
"fsSchemaCacheMisses": 0,
"dbSchemaCacheHits": 0,
"dbSchemaCacheMisses": 0,
"envSchemaCacheHits": 1053581,
"envSchemaCacheMisses": 0,
"temporaryFileReadBytes": 0,
"temporaryFileWriteBytes": 0,
"hosts": [
],
"outputSgmlCharacterEntities": "none",
"outputEncoding": "UTF-8",
"errorHandler": "/error-switch.xqy",
"urlRewriter": "rewriter.xqy",
"requestTime": 1.01466679573059,
"serverReceiveBytes": 319913,
"serverReceiveTime": "PT0.185273S",
"serverReceiveRate": 0,
"serverReceiveLoad": 0,
"serverSendBytes": 252739502,
"serverSendTime": "PT0.732626S",
"serverSendRate": 0.0617369599640369,
"serverSendLoad": 0
}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.