-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCS-4522: adds new mongotop error message for 2.8 #2096
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,7 @@ affect the output of :program:`mongotop`. | |
and collection. | ||
|
||
.. versionchanged:: 2.2 | ||
If you use the :option:`--locks`, the :data:`~mongotop.ns` field does not | ||
If you use the :option:`mongotop --locks`, the :data:`~mongotop.ns` field does not | ||
appear in the :program:`mongotop` output. | ||
|
||
.. data:: mongotop.db | ||
|
@@ -153,6 +153,8 @@ affect the output of :program:`mongotop`. | |
|
||
Provides a time stamp for the returned data. | ||
|
||
.. _mongotop-use: | ||
|
||
Use | ||
--- | ||
|
||
|
@@ -174,22 +176,32 @@ This command produces 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 | ||
|
||
ns total read write 2014-12-19T15:32:01-05:00 | ||
admin.system.roles 0ms 0ms 0ms | ||
admin.system.version 0ms 0ms 0ms | ||
local.me 0ms 0ms 0ms | ||
local.oplog.rs 0ms 0ms 0ms | ||
local.replset.minvalid 0ms 0ms 0ms | ||
local.startup_log 0ms 0ms 0ms | ||
local.system.indexes 0ms 0ms 0ms | ||
local.system.namespaces 0ms 0ms 0ms | ||
local.system.replset 0ms 0ms 0ms | ||
|
||
ns total read write 2014-12-19T15:47:01-05:00 | ||
admin.system.roles 0ms 0ms 0ms | ||
admin.system.version 0ms 0ms 0ms | ||
local.me 0ms 0ms 0ms | ||
local.oplog.rs 0ms 0ms 0ms | ||
local.replset.minvalid 0ms 0ms 0ms | ||
local.startup_log 0ms 0ms 0ms | ||
local.system.indexes 0ms 0ms 0ms | ||
local.system.namespaces 0ms 0ms 0ms | ||
local.system.replset 0ms 0ms 0ms | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. local.system.indexes and local.system.namespaces should only appear in mmapv1? either want to note that or produce an alternate output example? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added a note! |
||
|
||
The output varies depending on your MongoDB setup. For example, | ||
``local.system.indexes`` and ``local.system.namespaces`` only appear | ||
for :program:`mongod` instances using the :ref:`MMAPv1 <storage-mmapv1>` | ||
storage engine. | ||
|
||
To return a :program:`mongotop` report every 5 minutes, use the | ||
following command: | ||
|
@@ -198,7 +210,7 @@ following command: | |
|
||
mongotop 300 | ||
|
||
To report the use of per-database locks, use :option:`mongotop --locks`, | ||
To report the use of per-database locks, use :option:`--locks`, | ||
which produces the following output: | ||
|
||
.. code-block:: sh | ||
|
@@ -210,3 +222,8 @@ which produces the following output: | |
local 0ms 0ms 0ms | ||
admin 0ms 0ms 0ms | ||
. 0ms 0ms 0ms | ||
|
||
.. versionchanged:: 2.8.0 | ||
When called against a :program:`mongod` that does not report lock | ||
usage, :option:`--locks` will return a ``Failed: Server does not | ||
support reporting locking information`` error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra whitespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required for the
versionchanged
to render properly!