Linux 增加MongoDB最大连接数

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7693989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 06:32:58  来源:igfitidea点击:

Increase MongoDB maximum number of connections

linuxmongodbmongoid

提问by c2h2

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.

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

采纳答案by Tilo

Check the MongoDB documentation:

检查 MongoDB 文档:

http://www.mongodb.org/

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/