@@ -11,7 +11,7 @@ Synopsis
11
11
12
12
:program:`mongotop` provides a method to track the amount of time a
13
13
MongoDB 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,
15
15
:program:`mongotop` returns values every second.
16
16
17
17
.. seealso::
@@ -51,7 +51,7 @@ Options
51
51
52
52
.. option:: --version
53
53
54
- Returns the version of the :program:`mongotop` utility.
54
+ Print the version of the :program:`mongotop` utility and exit .
55
55
56
56
.. option:: --host <hostname><:port>
57
57
@@ -103,7 +103,7 @@ Options
103
103
104
104
.. option:: <sleeptime>
105
105
106
- The final argument the length of time, in seconds, that
106
+ The final argument is the length of time, in seconds, that
107
107
:program:`mongotop` waits in between calls. By default
108
108
:program:`mongotop` returns data every second.
109
109
@@ -163,8 +163,8 @@ Usage
163
163
-----
164
164
165
165
By 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`
168
168
instances. See the :ref:`mongotop options <mongotop-options>` for more
169
169
information.
170
170
@@ -175,10 +175,44 @@ return every 15 seconds.
175
175
.. code-block:: sh
176
176
177
177
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
+
178
198
179
199
Use the following command to return a :program:`mongotop` report every 5
180
200
minutes:
181
201
182
202
.. code-block:: sh
183
203
184
204
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