Blame SOURCES/mongotop.1

7fe184
.\" Man page generated from reStructuredText.
7fe184
.
7fe184
.TH "MONGOTOP" "1" "January 30, 2015" "3.0" "mongodb-manual"
7fe184
.SH NAME
7fe184
mongotop \- MongoDB Activity Monitor
7fe184
.
7fe184
.nr rst2man-indent-level 0
7fe184
.
7fe184
.de1 rstReportMargin
7fe184
\\$1 \\n[an-margin]
7fe184
level \\n[rst2man-indent-level]
7fe184
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
7fe184
-
7fe184
\\n[rst2man-indent0]
7fe184
\\n[rst2man-indent1]
7fe184
\\n[rst2man-indent2]
7fe184
..
7fe184
.de1 INDENT
7fe184
.\" .rstReportMargin pre:
7fe184
. RS \\$1
7fe184
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
7fe184
. nr rst2man-indent-level +1
7fe184
.\" .rstReportMargin post:
7fe184
..
7fe184
.de UNINDENT
7fe184
. RE
7fe184
.\" indent \\n[an-margin]
7fe184
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
7fe184
.nr rst2man-indent-level -1
7fe184
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
7fe184
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
7fe184
..
7fe184
.SH SYNOPSIS
7fe184
.sp
7fe184
\fBmongotop\fP provides a method to track the amount of time a
7fe184
MongoDB instance spends reading and writing data. \fBmongotop\fP
7fe184
provides statistics on a per\-collection level. By default,
7fe184
\fBmongotop\fP returns values every second.
7fe184
.sp
7fe184
\fBIMPORTANT:\fP
7fe184
.INDENT 0.0
7fe184
.INDENT 3.5
7fe184
In order to connect to a \fBmongod\fP that enforces
7fe184
authorization with the \fI\-\-auth\fP option, the
7fe184
\fI\-\-username\fP and
7fe184
\fI\-\-password\fP options must be used, and the
7fe184
user specified must have the \fBserverStatus\fP and
7fe184
\fBtop\fP privileges.
7fe184
.sp
7fe184
The most appropriate built\-in role that has these privileges is
7fe184
\fBclusterMonitor\fP\&.
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.sp
7fe184
\fBSEE ALSO:\fP
7fe184
.INDENT 0.0
7fe184
.INDENT 3.5
7fe184
For more information about monitoring MongoDB, see
7fe184
http://docs.mongodb.org/manual/administration/monitoring\&.
7fe184
.sp
7fe184
For additional background on various other MongoDB status outputs
7fe184
see:
7fe184
.INDENT 0.0
7fe184
.IP \(bu 2
7fe184
http://docs.mongodb.org/manual/reference/command/serverStatus
7fe184
.IP \(bu 2
7fe184
http://docs.mongodb.org/manual/reference/command/replSetGetStatus
7fe184
.IP \(bu 2
7fe184
http://docs.mongodb.org/manual/reference/command/dbStats
7fe184
.IP \(bu 2
7fe184
http://docs.mongodb.org/manual/reference/command/collStats
7fe184
.UNINDENT
7fe184
.sp
7fe184
For an additional utility that provides MongoDB metrics
7fe184
see \fBmongostat\fP\&.
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.SH OPTIONS
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B mongotop
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B mongotop
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-help
7fe184
Returns information on the options and use of \fBmongotop\fP\&.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-verbose, \-v
7fe184
Increases the amount of internal reporting returned on standard output
7fe184
or in log files. Increase the verbosity with the \fB\-v\fP form by
7fe184
including the option multiple times, (e.g. \fB\-vvvvv\fP\&.)
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-quiet
7fe184
Runs the \fBmongotop\fP in a quiet mode that attempts to limit the amount
7fe184
of output.
7fe184
.sp
7fe184
This option suppresses:
7fe184
.INDENT 7.0
7fe184
.IP \(bu 2
7fe184
output from \fIdatabase commands\fP
7fe184
.IP \(bu 2
7fe184
replication activity
7fe184
.IP \(bu 2
7fe184
connection accepted events
7fe184
.IP \(bu 2
7fe184
connection closed events
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-version
7fe184
Returns the \fBmongotop\fP release number.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-host <hostname><:port>, \-h <hostname><:port>
7fe184
\fIDefault\fP: localhost:27017
7fe184
.sp
7fe184
Specifies a resolvable hostname for the \fBmongod\fP to which to
7fe184
connect. By default, the \fBmongotop\fP attempts to connect to a MongoDB
7fe184
instance running on the localhost on port number \fB27017\fP\&.
7fe184
.sp
7fe184
To connect to a replica set, specify the
7fe184
\fBreplSetName\fP and a seed list of set members, as in
7fe184
the following:
7fe184
.INDENT 7.0
7fe184
.INDENT 3.5
7fe184
.sp
7fe184
.nf
7fe184
.ft C
7fe184
<replSetName>/<hostname1><:port>,<hostname2><:port>,<...>
7fe184
.ft P
7fe184
.fi
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.sp
7fe184
You can always connect directly to a single MongoDB instance by
7fe184
specifying the host and port number directly.
7fe184
.sp
7fe184
Changed in version 3.0.0: If you use IPv6 and use the \fB<address>:<port>\fP format, you must
7fe184
enclose the portion of an address and port combination in
7fe184
brackets (e.g. \fB[<address>]\fP).
7fe184
7fe184
.sp
7fe184
If connected to a replica set where the \fIprimary\fP is not
7fe184
reachable, \fBmongotop\fP returns an error message.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-port <port>
7fe184
\fIDefault\fP: 27017
7fe184
.sp
7fe184
Specifies the TCP port on which the MongoDB instance listens for
7fe184
client connections.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-ipv6
7fe184
Enables IPv6 support and allows the \fBmongotop\fP to connect to the
7fe184
MongoDB instance using an IPv6 network. All MongoDB programs and
7fe184
processes disable IPv6 support by default.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-ssl
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Enables connection to a \fBmongod\fP or \fBmongos\fP that has
7fe184
SSL support enabled.
7fe184
.sp
7fe184
The default distribution of MongoDB does not contain support for SSL.
7fe184
For more information on MongoDB and SSL, see http://docs.mongodb.org/manual/tutorial/configure\-ssl\&.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-sslCAFile <filename>
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Specifies the \fB\&.pem\fP file that contains the root certificate chain
7fe184
from the Certificate Authority. Specify the file name of the
7fe184
\fB\&.pem\fP file using relative or absolute paths.
7fe184
.sp
7fe184
The default distribution of MongoDB does not contain support for SSL.
7fe184
For more information on MongoDB and SSL, see http://docs.mongodb.org/manual/tutorial/configure\-ssl\&.
7fe184
.sp
7fe184
\fBWARNING:\fP
7fe184
.INDENT 7.0
7fe184
.INDENT 3.5
7fe184
If the \fBmongo\fP shell or any other tool that connects to
7fe184
\fBmongos\fP or \fBmongod\fP is run without
7fe184
\fI\-\-sslCAFile\fP, it will not attempt to validate
7fe184
server certificates. This results in vulnerability to expired
7fe184
\fBmongod\fP and \fBmongos\fP certificates as well as to foreign
7fe184
processes posing as valid \fBmongod\fP or \fBmongos\fP
7fe184
instances. Ensure that you \fIalways\fP specify the CA file against which
7fe184
server certificates should be validated in cases where intrusion is a
7fe184
possibility.
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-sslPEMKeyFile <filename>
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Specifies the \fB\&.pem\fP file that contains both the SSL certificate
7fe184
and key. Specify the file name of the \fB\&.pem\fP file using relative
7fe184
or absolute paths.
7fe184
.sp
7fe184
This option is required when using the \fI\%\-\-ssl\fP option to connect
7fe184
to a \fBmongod\fP or \fBmongos\fP that has
7fe184
\fBCAFile\fP enabled \fIwithout\fP
7fe184
\fBallowConnectionsWithoutCertificates\fP\&.
7fe184
.sp
7fe184
The default distribution of MongoDB does not contain support for SSL.
7fe184
For more information on MongoDB and SSL, see http://docs.mongodb.org/manual/tutorial/configure\-ssl\&.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-sslPEMKeyPassword <value>
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Specifies the password to de\-crypt the certificate\-key file (i.e.
7fe184
\fI\%\-\-sslPEMKeyFile\fP). Use the \fI\%\-\-sslPEMKeyPassword\fP option only if the
7fe184
certificate\-key file is encrypted. In all cases, the \fBmongotop\fP will
7fe184
redact the password from all logging and reporting output.
7fe184
.sp
7fe184
If the private key in the PEM file is encrypted and you do not specify
7fe184
the \fI\%\-\-sslPEMKeyPassword\fP option, the \fBmongotop\fP will prompt for a passphrase. See
7fe184
\fIssl\-certificate\-password\fP\&.
7fe184
.sp
7fe184
The default distribution of MongoDB does not contain support for SSL.
7fe184
For more information on MongoDB and SSL, see http://docs.mongodb.org/manual/tutorial/configure\-ssl\&.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-sslCRLFile <filename>
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Specifies the \fB\&.pem\fP file that contains the Certificate Revocation
7fe184
List. Specify the file name of the \fB\&.pem\fP file using relative or
7fe184
absolute paths.
7fe184
.sp
7fe184
The default distribution of MongoDB does not contain support for SSL.
7fe184
For more information on MongoDB and SSL, see http://docs.mongodb.org/manual/tutorial/configure\-ssl\&.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-sslAllowInvalidCertificates
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Bypasses the validation checks for server certificates and allows
7fe184
the use of invalid certificates. When using the
7fe184
\fBallowInvalidCertificates\fP setting, MongoDB logs as a
7fe184
warning the use of the invalid certificate.
7fe184
.sp
7fe184
The default distribution of MongoDB does not contain support for SSL.
7fe184
For more information on MongoDB and SSL, see http://docs.mongodb.org/manual/tutorial/configure\-ssl\&.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-sslAllowInvalidHostnames
7fe184
New in version 3.0.
7fe184
7fe184
.sp
7fe184
Disables the validation of the hostnames in SSL certificates. Allows
7fe184
\fBmongotop\fP to connect to MongoDB instances if the hostname their
7fe184
certificates do not match the specified hostname.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-sslFIPSMode
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Directs the \fBmongotop\fP to use the FIPS mode of the installed OpenSSL
7fe184
library. Your system must have a FIPS compliant OpenSSL library to use
7fe184
the \fI\%\-\-sslFIPSMode\fP option.
7fe184
.sp
7fe184
\fBNOTE:\fP
7fe184
.INDENT 7.0
7fe184
.INDENT 3.5
7fe184
FIPS Compatible SSL is
7fe184
available only in \fI\%MongoDB Enterprise\fP\&. See
7fe184
http://docs.mongodb.org/manual/tutorial/configure\-fips for more information.
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-username <username>, \-u <username>
7fe184
Specifies a username with which to authenticate to a MongoDB database
7fe184
that uses authentication. Use in conjunction with the \fB\-\-password\fP and
7fe184
\fB\-\-authenticationDatabase\fP options.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-password <password>, \-p <password>
7fe184
Specifies a password with which to authenticate to a MongoDB database
7fe184
that uses authentication. Use in conjunction with the \fB\-\-username\fP and
7fe184
\fB\-\-authenticationDatabase\fP options.
7fe184
.sp
7fe184
If you do not specify an argument for \fI\%\-\-password\fP, \fBmongotop\fP will
7fe184
prompt interactively for a password on the console.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-authenticationDatabase <dbname>
7fe184
New in version 2.4.
7fe184
7fe184
.sp
7fe184
Specifies the database that holds the user\(aqs credentials.
7fe184
.sp
7fe184
Changed in version 3.0.0: \fI\%\-\-authenticationDatabase\fP is required for \fBmongod\fP
7fe184
and \fBmongos\fP instances that use \fIauthentication\fP\&.
7fe184
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-authenticationMechanism <name>
7fe184
\fIDefault\fP: MONGODB\-CR
7fe184
.sp
7fe184
New in version 2.4.
7fe184
7fe184
.sp
7fe184
Changed in version 2.6: Added support for the \fBPLAIN\fP and \fBMONGODB\-X509\fP authentication
7fe184
mechanisms.
7fe184
7fe184
.sp
7fe184
Specifies the authentication mechanism the \fBmongotop\fP instance uses to
7fe184
authenticate to the \fBmongod\fP or \fBmongos\fP\&.
7fe184
.TS
7fe184
center;
7fe184
|l|l|.
7fe184
_
7fe184
T{
7fe184
Value
7fe184
T}	T{
7fe184
Description
7fe184
T}
7fe184
_
7fe184
T{
7fe184
MONGODB\-CR
7fe184
T}	T{
7fe184
MongoDB challenge/response authentication.
7fe184
T}
7fe184
_
7fe184
T{
7fe184
MONGODB\-X509
7fe184
T}	T{
7fe184
MongoDB SSL certificate authentication.
7fe184
T}
7fe184
_
7fe184
T{
7fe184
PLAIN
7fe184
T}	T{
7fe184
External authentication using LDAP. You can also use \fBPLAIN\fP
7fe184
for authenticating in\-database users. \fBPLAIN\fP transmits
7fe184
passwords in plain text. This mechanism is available only in
7fe184
\fI\%MongoDB Enterprise\fP\&.
7fe184
T}
7fe184
_
7fe184
T{
7fe184
GSSAPI
7fe184
T}	T{
7fe184
External authentication using Kerberos. This mechanism is
7fe184
available only in \fI\%MongoDB Enterprise\fP\&.
7fe184
T}
7fe184
_
7fe184
.TE
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-gssapiServiceName
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Specify the name of the service using \fBGSSAPI/Kerberos\fP\&. Only required if the service does not use the
7fe184
default name of \fBmongodb\fP\&.
7fe184
.sp
7fe184
This option is available only in MongoDB Enterprise.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-gssapiHostName
7fe184
New in version 2.6.
7fe184
7fe184
.sp
7fe184
Specify the hostname of a service using \fBGSSAPI/Kerberos\fP\&. \fIOnly\fP required if the hostname of a machine does
7fe184
not match the hostname resolved by DNS.
7fe184
.sp
7fe184
This option is available only in MongoDB Enterprise.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-locks
7fe184
Toggles the mode of \fBmongotop\fP to report on use of per\-database
7fe184
\fIlocks\fP\&. These data are useful for measuring concurrent
7fe184
operations and lock percentage.
7fe184
.sp
7fe184
\fI\%\-\-locks\fP returns an error when called against a \fBmongod\fP instance
7fe184
that does not report lock usage.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-rowcount int, \-n int
7fe184
Number of lines of data that \fBmongotop\fP should print. "0 for indefinite"
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B \-\-json
7fe184
New in version 3.0.0.
7fe184
7fe184
.sp
7fe184
Returns output for \fBmongotop\fP in \fIJSON\fP format.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B <sleeptime>
7fe184
The final argument is the length of time, in seconds, that
7fe184
\fBmongotop\fP waits in between calls. By default \fBmongotop\fP returns
7fe184
data every second.
7fe184
.UNINDENT
7fe184
.SH FIELDS
7fe184
.sp
7fe184
\fBmongotop\fP returns time values specified in milliseconds
7fe184
(ms.)
7fe184
.sp
7fe184
\fBmongotop\fP only reports active namespaces or databases,
7fe184
depending on the \fI\%\-\-locks\fP option. If you don\(aqt see a database
7fe184
or collection, it has received no recent activity. You can issue a
7fe184
simple operation in the \fBmongo\fP shell to generate activity to
7fe184
affect the output of \fBmongotop\fP\&.
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B mongotop.ns
7fe184
Contains the database namespace, which combines the database name
7fe184
and collection.
7fe184
.sp
7fe184
Changed in version 2.2: If you use the \fImongotop \-\-locks\fP, the \fBns\fP field does not
7fe184
appear in the \fBmongotop\fP output.
7fe184
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B mongotop.db
7fe184
New in version 2.2.
7fe184
7fe184
.sp
7fe184
Contains the name of the database. The database named \fB\&.\fP refers
7fe184
to the global lock, rather than a specific database.
7fe184
.sp
7fe184
This field does not appear unless you have invoked
7fe184
\fBmongotop\fP with the \fI\%\-\-locks\fP option.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B mongotop.total
7fe184
Provides the total amount of time that this \fBmongod\fP spent
7fe184
operating on this namespace.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B mongotop.read
7fe184
Provides the amount of time that this \fBmongod\fP spent
7fe184
performing read operations on this namespace.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B mongotop.write
7fe184
Provides the amount of time that this \fBmongod\fP spent
7fe184
performing write operations on this namespace.
7fe184
.UNINDENT
7fe184
.INDENT 0.0
7fe184
.TP
7fe184
.B mongotop.<timestamp>
7fe184
Provides a time stamp for the returned data.
7fe184
.UNINDENT
7fe184
.SH USE
7fe184
.sp
7fe184
By default \fBmongotop\fP connects to the MongoDB instance
7fe184
running on the localhost port \fB27017\fP\&. However, \fBmongotop\fP can optionally
7fe184
connect to remote \fBmongod\fP
7fe184
instances. See the \fI\%mongotop options\fP for more
7fe184
information.
7fe184
.sp
7fe184
To force \fBmongotop\fP to return less frequently specify a number, in
7fe184
seconds at the end of the command. In this example, \fBmongotop\fP will
7fe184
return every 15 seconds.
7fe184
.INDENT 0.0
7fe184
.INDENT 3.5
7fe184
.sp
7fe184
.nf
7fe184
.ft C
7fe184
mongotop 15
7fe184
.ft P
7fe184
.fi
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.sp
7fe184
This command produces the following output:
7fe184
.INDENT 0.0
7fe184
.INDENT 3.5
7fe184
.sp
7fe184
.nf
7fe184
.ft C
7fe184
                     ns    total    read    write          2014\-12\-19T15:32:01\-05:00
7fe184
     admin.system.roles      0ms     0ms      0ms
7fe184
   admin.system.version      0ms     0ms      0ms
7fe184
               local.me      0ms     0ms      0ms
7fe184
         local.oplog.rs      0ms     0ms      0ms
7fe184
 local.replset.minvalid      0ms     0ms      0ms
7fe184
      local.startup_log      0ms     0ms      0ms
7fe184
   local.system.indexes      0ms     0ms      0ms
7fe184
local.system.namespaces      0ms     0ms      0ms
7fe184
   local.system.replset      0ms     0ms      0ms
7fe184
7fe184
                     ns    total    read    write          2014\-12\-19T15:47:01\-05:00
7fe184
     admin.system.roles      0ms     0ms      0ms
7fe184
   admin.system.version      0ms     0ms      0ms
7fe184
               local.me      0ms     0ms      0ms
7fe184
         local.oplog.rs      0ms     0ms      0ms
7fe184
 local.replset.minvalid      0ms     0ms      0ms
7fe184
      local.startup_log      0ms     0ms      0ms
7fe184
   local.system.indexes      0ms     0ms      0ms
7fe184
local.system.namespaces      0ms     0ms      0ms
7fe184
   local.system.replset      0ms     0ms      0ms
7fe184
.ft P
7fe184
.fi
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.sp
7fe184
The output varies depending on your MongoDB setup. For example,
7fe184
\fBlocal.system.indexes\fP and \fBlocal.system.namespaces\fP only appear
7fe184
for \fBmongod\fP instances using the \fIMMAPv1\fP
7fe184
storage engine.
7fe184
.sp
7fe184
To return a \fBmongotop\fP report every 5 minutes, use the
7fe184
following command:
7fe184
.INDENT 0.0
7fe184
.INDENT 3.5
7fe184
.sp
7fe184
.nf
7fe184
.ft C
7fe184
mongotop 300
7fe184
.ft P
7fe184
.fi
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.sp
7fe184
To report the use of per\-database locks, use \fI\%\-\-locks\fP,
7fe184
which produces the following output:
7fe184
.INDENT 0.0
7fe184
.INDENT 3.5
7fe184
.sp
7fe184
.nf
7fe184
.ft C
7fe184
$ mongotop \-\-locks
7fe184
connected to: 127.0.0.1
7fe184
7fe184
                  db       total        read       write          2012\-08\-13T16:33:34
7fe184
               local         0ms         0ms         0ms
7fe184
               admin         0ms         0ms         0ms
7fe184
                   .         0ms         0ms         0ms
7fe184
.ft P
7fe184
.fi
7fe184
.UNINDENT
7fe184
.UNINDENT
7fe184
.sp
7fe184
Changed in version 3.0.0: When called against a \fBmongod\fP that does not report lock
7fe184
usage, \fI\%\-\-locks\fP will return a \fBFailed: Server does not
7fe184
support reporting locking information\fP error.
7fe184
7fe184
.SH AUTHOR
7fe184
MongoDB Documentation Project
7fe184
.SH COPYRIGHT
7fe184
2011-2015
7fe184
.\" Generated by docutils manpage writer.
7fe184
.