Here's some lines from the log:
Fri May 4 02:17:47 [initandlisten] connection accepted from
127.0.0.1:60640 #8402
Fri May 4 02:17:47 [initandlisten] connection refused because too many open connections: 819 of 819
Fri May 4 02:17:47 [initandlisten] connection accepted from
127.0.0.1:60641 #8403
Fri May 4 02:17:47 [initandlisten] connection refused because too many open connections: 819 of 819
Fri May 4 02:17:47 [initandlisten] connection accepted from
127.0.0.1:60642 #8404
Fri May 4 02:17:47 [initandlisten] connection refused because too many open connections: 819 of 819
Fri May 4 02:17:47 [initandlisten] connection accepted from
127.0.0.1:60643 #8405
Fri May 4 02:17:47 [initandlisten] connection refused because too many open connections: 819 of 819
Fri May 4 02:17:47 [initandlisten] connection accepted from
127.0.0.1:60644 #8406
It just started happening recently and not sure what's causing it. My site isn't that heavily trafficked.
Running mongo gives:
MongoDB shell version: 1.8.0
connecting to: test
Fri May 4 02:17:09 DBClientCursor::init call() failed
exception: DBClientBase::findOne: transport error: 127.0.0.1 query: { whatsmyuri: 1 }
And:
Mongod version:
db version v1.8.0, pdfile version 4.5
Fri May 4 02:25:00 git version: 9c28b1d608df0ed6ebe791f63682370082da41c0
A simple restart of mongod fixes it until it happens again hours later, but I'd like to get to the root of the problem.
I'm using the PHP driver but I also run a cron script of a js file that does a map reduce job every 15 minutes. I run that js file directly through the mongo shell "mongo thefile.js."
The map reduce job usually takes less than a minute to run though.
Any idea what's causing this?
Thanks!