Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase MongoDB maximum number of connections

I am getting some errors on MongoDB side, the error is complaining that it reached the max allowed connections.

Wondering if there is anyway to increase the max number of allowed connections.

like image 889
c2h2 Avatar asked Oct 08 '11 00:10

c2h2


1 Answers

Check the MongoDB documentation:

http://www.mongodb.org/

use this command line argument:

--maxConns arg       max number of simultaneous connections

You might want to check this: http://blog.boxedice.com/2011/06/08/mongodb-connection-overhead/

like image 98
Tilo Avatar answered Oct 19 '22 08:10

Tilo