- Reference >
- Database Commands >
- Diagnostic Commands >
- top
top¶
On this page
-
top¶ topis an administrative command that returns usage statistics for each collection.topprovides 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
topcommand must be run against a mongod instance. Runningtopagainst a mongos instance will return an error.Issue the
topcommand against the admin database in the form: