top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is mongotop and mongostat in mongoDB?

+2 votes
845 views
What is mongotop and mongostat in mongoDB?
posted Mar 13, 2016 by Shivam Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

The mongostat provides a quick overview of the status of a currently running mongod or mongos instance. mongostat is functionally similar to the UNIX/Linux file system utility vmstat, but provides data regarding mongod and mongos instances.
See the link for syntax of mongostat -
https://docs.mongodb.org/manual/reference/program/mongostat/

Whereas mongotop provides a method to track the amount of time a MongoDB instance spends reading and writing data. mongotop provides statistics on a per-collection level. By default, mongotop returns values every second.
See the link
https://docs.mongodb.org/manual/reference/program/mongotop/

answer Mar 13, 2016 by Salil Agrawal
Thank You !!
...