Answer the question
In order to leave comments, you need to log in
Why is mongodb taking a long time to execute queries?
I have my own virtual server in VirtualBox with Ubuntu Server on board. It has the standard apache-php-mysql stack installed, and more recently mongodb. The problem is that mongo often starts to show off and execute requests for a couple of minutes each.
At the same time, there are no problems in the logs: half the time after the request is launched, there is generally silence, then it writes about the connection received, and then the same amount of stupidity.
The problem is definitely in mongo, because. I throw a request for an action in which there is no connection to the database - everything runs fine.
Moreover, it is also interesting that after the reboot-reload operations of the hibernation service + exit from it, everything can work normally, but without any regularity.
Answer the question
In order to leave comments, you need to log in
Try mongostat
Monitoring MongoDB with mongostat and mongotop
How to monitor MongoDB
MongoDB Monitoring: mongostat
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question