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
Increase MongoDB maximum number of connections
提问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 文档:
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/