增加MongoDB的最大连接数

时间:2022-03-14 15:20:16

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

我在MongoDB端遇到一些错误,错误是抱怨它达到了最大允许连接数。

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

想知道是否有增加允许连接的最大数量。

1 个解决方案

#1


6  

Check the MongoDB documentation:

检查MongoDB文档:

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/

您可能需要查看此内容:http://blog.boxedice.com/2011/06/08/mongodb-connection-overhead/

#1


6  

Check the MongoDB documentation:

检查MongoDB文档:

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/

您可能需要查看此内容:http://blog.boxedice.com/2011/06/08/mongodb-connection-overhead/