Answer the question
In order to leave comments, you need to log in
Does mongo exit on timeout or not?
Hello, I ran into a problem on one of the sites. A similar error pops up:
Fatal error: Uncaught exception 'MongoCursorTimeoutException' with message 'localhost:27017: Read timed out after reading 0 bytes, waited for 30.000000 seconds' in the path to the file and in which class method the plug
is . crashes on read timeout from mongo db, am i right?
And why is this happening? What should be done to avoid this?
Answer the question
In order to leave comments, you need to log in
use normal queries that run faster than 30 seconds
, and place mongo on a more powerful server, tune the parameters, and, out of desperation, raise the timeout in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question