MongoDB Backup, Restore, and Replica Set Workflows/Watch read and write time with mongotop

See how much time collections spend reading and writing.

Section: Replica set and diagnostics

Watch read and write time with mongotop

bash
bash
mongotop --uri="mongodb://localhost:27017"
Explanation

Useful for identifying where activity is concentrated across collections.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Replica set and diagnostics
Watch server metrics with mongostat
See high-level runtime activity.
OpenIn sheetbashsame section
Check replica set status
Inspect members, state, and health.
OpenIn sheetjavascriptsame section
Initiate a simple replica set
Initialize a replica set on a self-managed deployment.
OpenIn sheetjavascriptsame section
Dump one database
Create a binary dump of a database.
OpenIn sheetbash1 tag match
Dump one collection
Back up only a single collection.
Restore a dump and drop existing data first
Restore into a collection or database after clearing prior content.