Skip to main content

Posts

Showing posts from December, 2013

Profiling Slow Query in Mongodb

To monitor slow queries which are run in a mongodb database, profile  attribute need to be set. There are three profiling levels: 0, 1 and 2. Add the following line into mongo.conf: profile=1 Value 0 disables profiling. Value 1 enables the system to detect and record slow queries which take more time than given threshold value. If the attribute is set to 2, information of all queries are recorded.