Blame SOURCES/mongotop.1

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