List some commonly used MongoDB state viewing methods.
1.mongostat
Is the MONGDB's own condition detection tool,
- INSERTS/S number of insertions per second
- QUERY/S number of queries per second
- UPDATE/S Update times per second
- DELETE/S number of deletions per second
- GETMORE/S number of Getmore executed per second
- command/s command number per second, more than the above insert, find, UPDATE, delete more comprehensive, also counted other commands
- FLUSHS/S the number of times per second that Fsync data is written to the hard disk.
- MAPPED/S The amount of data that is mmap, in megabytes,
- Vsize Virtual memory usage, Unit MB
- Res Physical memory usage, Unit MB
- FAULTS/S page faults
- Locked% Locked time percentage
- IDX Miss% Index Miss percentage, reminder check Index
- Q t|r|w When MongoDB receives too many commands and the database is locked and cannot be completed, it joins the command to the queue. This column shows the length of the total, read, and write 3 queues, all of which are 0 words MONGO no pressure. When high concurrency occurs, the general queue value is raised.
- Conn Current number of connections
- Time timestamp
2.db.stats ()
Get information about the current database, such as total obj, total database size, average obj size, and more
Db. Collection name. Stats ()
View statistics for the current collection
3.db.serverstatus ()
Get the status of the server
4.db.currentop ()
Displays the tasks currently performed by MONGO
5.mongo Web Monitor
6.mongotop
To view the read and write time of a collection
7.mongoperf
Performance testing tools for testing disk IO
MONGO Status View method