@@ -11,7 +11,7 @@ Synopsis
1111
1212:program:`mongotop` provides a method to track the amount of time a
1313MongoDB instance spends reading and writing data. :program:`mongotop`
14- provides statistics on the per-collection level. By default,
14+ provides statistics on a per-collection level. By default,
1515:program:`mongotop` returns values every second.
1616
1717.. seealso::
@@ -51,7 +51,7 @@ Options
5151
5252.. option:: --version
5353
54- Returns the version of the :program:`mongotop` utility.
54+ Print the version of the :program:`mongotop` utility and exit .
5555
5656.. option:: --host <hostname><:port>
5757
@@ -103,7 +103,7 @@ Options
103103
104104.. option:: <sleeptime>
105105
106- The final argument the length of time, in seconds, that
106+ The final argument is the length of time, in seconds, that
107107 :program:`mongotop` waits in between calls. By default
108108 :program:`mongotop` returns data every second.
109109
@@ -163,8 +163,8 @@ Usage
163163-----
164164
165165By default :program:`mongotop` connects to the MongoDB instance
166- ruining on the localhost port 27017; however, you can optionally
167- connect :program:`mongotop` to connect to remote :program:`mongod`
166+ running on the localhost port 27017. However, :program:`mongotop` can optionally
167+ connect to remote :program:`mongod`
168168instances. See the :ref:`mongotop options <mongotop-options>` for more
169169information.
170170
@@ -175,10 +175,44 @@ return every 15 seconds.
175175.. code-block:: sh
176176
177177 mongotop 15
178+
179+ Resulting in the following output:
180+
181+ .. code-block:: sh
182+ connected to: 127.0.0.1
183+
184+ ns total read write 2012-08-13T15:45:40
185+ test.system.namespaces 0ms 0ms 0ms
186+ local.system.replset 0ms 0ms 0ms
187+ local.system.indexes 0ms 0ms 0ms
188+ admin.system.indexes 0ms 0ms 0ms
189+ admin. 0ms 0ms 0ms
190+
191+ ns total read write 2012-08-13T15:45:55
192+ test.system.namespaces 0ms 0ms 0ms
193+ local.system.replset 0ms 0ms 0ms
194+ local.system.indexes 0ms 0ms 0ms
195+ admin.system.indexes 0ms 0ms 0ms
196+ admin. 0ms 0ms 0ms
197+
178198
179199Use the following command to return a :program:`mongotop` report every 5
180200minutes:
181201
182202.. code-block:: sh
183203
184204 mongotop 300
205+
206+ Use the following command to report on per-database locks:
207+
208+ .. code-block:: sh
209+
210+ mongotop --locks
211+
212+ db total read write 2012-08-13T16:33:34
213+ local 0ms 0ms 0ms
214+ admin 0ms 0ms 0ms
215+ . 0ms 0ms 0ms
216+
217+
218+
0 commit comments