Increase MongoDB maximum number of connections

2019-04-07 19:09发布

问题:

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.

回答1:

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/