cjlee112 / spnet

selected papers network web engine
http://thinking.bioinformatics.ucla.edu/2011/07/02/open-peer-review-by-a-selected-papers-network/
GNU General Public License v2.0
40 stars 11 forks source link

MongoDB: too many connections, exiting? #78

Open cjlee112 opened 11 years ago

cjlee112 commented 11 years ago

Today I found the production site giving an error message indicating no DB connection. I checked the server and found mongoDB had exited, apparently normally, no indication why.

Possibly related issue: watching the mongod messages, I see the number of open connections going up steadily (24 at present). Not sure why, or even whether this is incorrect behavior (client driver libraries tend to use connection pooling which might make this normal, at least up to a point). Conceivably, if this keeps growing and growing, it could make the server exit?

Ideas:

cjlee112 commented 11 years ago

OK, I'm now running mongod within a while loop that will automatically restart it if it exits.