Skip to content

DOCS394 add example output to mongotop, also some typo and rephrasing cleanup #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 39 additions & 5 deletions source/reference/mongotop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Synopsis

:program:`mongotop` provides a method to track the amount of time a
MongoDB instance spends reading and writing data. :program:`mongotop`
provides statistics on the per-collection level. By default,
provides statistics on a per-collection level. By default,
:program:`mongotop` returns values every second.

.. seealso::
Expand Down Expand Up @@ -51,7 +51,7 @@ Options

.. option:: --version

Returns the version of the :program:`mongotop` utility.
Print the version of the :program:`mongotop` utility and exit.

.. option:: --host <hostname><:port>

Expand Down Expand Up @@ -103,7 +103,7 @@ Options

.. option:: <sleeptime>

The final argument the length of time, in seconds, that
The final argument is the length of time, in seconds, that
:program:`mongotop` waits in between calls. By default
:program:`mongotop` returns data every second.

Expand Down Expand Up @@ -163,8 +163,8 @@ Usage
-----

By default :program:`mongotop` connects to the MongoDB instance
ruining on the localhost port 27017; however, you can optionally
connect :program:`mongotop` to connect to remote :program:`mongod`
running on the localhost port 27017. However, :program:`mongotop` can optionally
connect to remote :program:`mongod`
instances. See the :ref:`mongotop options <mongotop-options>` for more
information.

Expand All @@ -175,10 +175,44 @@ return every 15 seconds.
.. code-block:: sh

mongotop 15

Resulting in the following output:

.. code-block:: sh
connected to: 127.0.0.1

ns total read write 2012-08-13T15:45:40
test.system.namespaces 0ms 0ms 0ms
local.system.replset 0ms 0ms 0ms
local.system.indexes 0ms 0ms 0ms
admin.system.indexes 0ms 0ms 0ms
admin. 0ms 0ms 0ms

ns total read write 2012-08-13T15:45:55
test.system.namespaces 0ms 0ms 0ms
local.system.replset 0ms 0ms 0ms
local.system.indexes 0ms 0ms 0ms
admin.system.indexes 0ms 0ms 0ms
admin. 0ms 0ms 0ms


Use the following command to return a :program:`mongotop` report every 5
minutes:

.. code-block:: sh

mongotop 300

Use the following command to report on per-database locks:

.. code-block:: sh

mongotop --locks

db total read write 2012-08-13T16:33:34
local 0ms 0ms 0ms
admin 0ms 0ms 0ms
. 0ms 0ms 0ms