- Reference >
- Database Commands >
- Diagnostic Commands >
- top
top¶
On this page
-
top
¶ top
is an administrative command that returns usage statistics for each collection.top
provides amount of time, in microseconds, used and a count of operations for the following event types:- total
- readLock
- writeLock
- queries
- getmore
- insert
- update
- remove
- commands
Important
The
top
command must be run against a mongod instance. Runningtop
against a mongos instance will return an error.Issue the
top
command against the admin database in the form: