- Administration >
- Administration Reference >
- Server Status Output
Server Status Output¶
This document provides a quick overview and example of the
serverStatus
command. The helper db.serverStatus()
in the mongo
shell provides access to this output. For full
documentation of the content of this output, see
serverStatus.
Note
The output fields vary depending on the version of MongoDB,
underlying operating system platform, the storage engine, and the
kind of node, including mongos
, mongod
or
replica set member. For the serverStatus
output
specific to the version of your MongoDB, refer to the appropriate
version of the MongoDB Manual.
Changed in version 3.0: The server status output no longer includes the workingSet
,
indexCounters
, and recordStats
sections.
The Instance Information section displays
information regarding the specific mongod
and
mongos
and its state.
The asserts document reports the number of assertions or errors produced by the server:
The backgroundFlushing document reports on the process MongoDB uses to write data to disk. The backgroundFlushing information only returns for instances that use the MMAPv1 storage engine:
The connections field reports on MongoDB’s current number of open incoming connections:
New in version 2.4: The totalCreated
field.
The cursors document reports on current cursor use and state:
The Journaling (dur) document reports on data that
reflect this mongod
instance’s journaling-related operations
and performance during a journal group commit interval. The
Journaling (dur) information only returns for instances
that use the MMAPv1 storage engine and have journaling enabled:
The fields in the extra_info document provide platform specific information. The following example block is from a Linux-based system:
The globalLock field reports on MongoDB’s global system lock. In most cases the locks document provides more fine grained data that reflects lock use:
The locks section reports statistics for each lock type and mode:
The network document reports on network use and state:
The opcounters document reports the number of operations this MongoDB instance has processed:
The opcountersRepl document reports the number of replicated operations:
The storageEngine document reports details about the current storage engine:
The writeBacksQueued document reports the number of writebacks:
The mem field reports on MongoDB’s current memory use:
The repl document reports on the state of replication and the replica set. This document only appears for replica sets.
The rangeDeleter document reports the number of
operations this MongoDB instance has processed. The
rangeDeleter
document is only present in the
output of serverStatus
when explicitly enabled.
The security document reports details about the security features and use:
The metrics document contains a number of
operational metrics that are useful for monitoring the state and
workload of a mongod
instance.
New in version 2.4.
Changed in version 2.6: Added the cursor
document.
The wiredTiger statistics section reports details about the WiredTiger statistics:
New in version 3.0: wiredTiger statistics section. This section appears only for the WiredTiger storage engine.
The final ok
field holds the return status for the
serverStatus
command: