mongostat
command checks the status of all running mongod instances
and return counters of database operations.
The following code shows how to use mongostat
,
D:\mongodb\bin>mongostat
mongotop
command track and report the read and write activity of MongoDB instance.
By default mongotop returns information every second.
The following code shows how to use this command.
D:\mongodb\bin>mongotop
To change mongotop command to return information less frequently, use the following command.
D:\mongodb\bin>mongotop 30
The above example will return values every 30 seconds.