Sort top is also a built-in tool under mongodb-win32-x86_64-2.2.1 \ bin, which provides a way to track an MongoDB instance and view which amount of time is spent reading and writing data. Mongotop provides horizontal statistics for each set. By default, every second of the return value of top is returned.
Usage:
1, E: \ mongodb-win32-x86_64-2.2.1 \ bin> Top 10
The next 10 is the <sleeptime> parameter, which can be left blank. The length of the waiting time, in seconds, is between waiting for the top 10 calls. By default, each second of data is returned through the top vertex.
2, E: \ mongodb-win32-x86_64-2.2.1 \ bin> unlock top -- locks
Report the use of locks for each database and use the top lock, which generates the following output:
Result fields:
Ns: contains the database namespace, which combines the Database Name and set.
Db: contains the database name. Name.The database is globally locked, not specific to the database.
Total: the total amount of time spent by mongod to work in this namespace.
Read: a large amount of time is provided. This namespace is used for executing read operations.
Write: Provides the namespace for write operations, which takes a lot of time.