(Transferred from: http://www.cnblogs.com/zhuque/archive/2013/03/29/2988639.html)
Mongotop, too.a built-in tool under the Mongodb-win32-x86_64-2.2.1\bin, Mongotopprovides a way to track an instance of MongoDB to see which amount of time is spent reading and writing data. Mongotop offersThe level of each collectionof statistical data. By default, Mongotop returns every second of a value.
Usage:
1, e:\mongodb-win32-x86_64-2.2.1\bin>mongotop
The following 10 is the <sleeptime> parameter, which can be used without, waiting for the length of time, in seconds, between Mongotop waits to be called. The default mongotop passed returns the data every second.
2, e:\mongodb-win32-x86_64-2.2.1\bin>mongotop--locks
To report the use of locks per database, use Mongotop-lock, which produces the following output:
The result field describes:
NS: contains the database namespace, which combines the database name and collection.
DB: contains the name of the database. Name is . database against a global lock, not a specific database.
Total:Mongod spends the time working in this namespace to provide the totals.
READ: provides a lot of time for this mongod to be spent in performing read operations in this namespace.
Write: provides this namespace for writing, which Mongod spend a lot of time.