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.
Development of cutting-edge technologies