MongoDB.Driver.MongoConnectionException: Unable to connect to the primary member of the replica set: Too many threads are already waiting for a connection..
C# Driver:1.3.1
Replset:
localhost:10001 (primary)
localhost:10002 (member)
I have initReplset and add localhost:10002 to the replset,
Then I create a new connection.When I try to connect,the exception happened.
If slaveOk of this connection setting is true.
Stack:
MongoDB</a>.Driver.MongoConnectionException: Unable to connect to any slaveOk
member of the replica set: Too many threads are already waiting for a
connection.. ---> MongoDB.Driver.MongoConnectionException: Too many threads
are already waiting for a connection.
at
MongoDB.Driver.Internal.MongoConnectionPool.AcquireConnection(MongoDatabase
database)
at MongoDB.Driver.MongoServerInstance.Connect(Boolean slaveOk)
at MongoDB.Driver.Internal.ReplicaSetConnector.ConnectWorkItem(Object
argsObject)
--- End of inner exception stack trace ---
at MongoDB.Driver.Internal.ReplicaSetConnector.Connect(TimeSpan timeout,
ConnectWaitFor waitFor)
at MongoDB.Driver.MongoServer.Connect(TimeSpan timeout, ConnectWaitFor
waitFor)
at MongoDB.Driver.MongoServer.Connect(TimeSpan timeout)
at MongoDB.Driver.MongoServer.Connect()
at
MagicMongoDBTool.Module.MongoDBHelper.FillConnectionToTreeView(TreeView
trvMongoDB) in C:\Work
Shop\MagicMongoDBTool\MagicMongoDBTool\Module\MongoDBHelper\MongoDBHelper_Connection_Present.cs:line
63
If I modify the SlaveOK to false:
MongoDB.Driver.MongoConnectionException: Unable to connect to the primary
member of the replica set: Too many threads are already waiting for a
connection.. ---> MongoDB.Driver.MongoConnectionException: Too many threads
are already waiting for a connection.
at
MongoDB.Driver.Internal.MongoConnectionPool.AcquireConnection(MongoDatabase
database)
at MongoDB.Driver.MongoServerInstance.Connect(Boolean slaveOk)
at MongoDB.Driver.Internal.ReplicaSetConnector.ConnectWorkItem(Object
argsObject)
--- End of inner exception stack trace ---
at MongoDB.Driver.Internal.ReplicaSetConnector.Connect(TimeSpan timeout,
ConnectWaitFor waitFor)
at MongoDB.Driver.MongoServer.Connect(TimeSpan timeout, ConnectWaitFor
waitFor)
at MongoDB.Driver.MongoServer.Connect(TimeSpan timeout)
at MongoDB.Driver.MongoServer.Connect()
at
MagicMongoDBTool.Module.MongoDBHelper.FillConnectionToTreeView(TreeView
trvMongoDB) in C:\Work
Shop\MagicMongoDBTool\MagicMongoDBTool\Module\MongoDBHelper\MongoDBHelper_Connection_Present.cs:line
63
But there is not any application access to the server.
OK,WaitQueueSize is need.
MongoDB.Driver.MongoConnectionException: Unable to connect to the primary member
来源:清泛原创 2016-06-28 10:06:26 人气: 我有话说( 0 人参与)
MongoDB Driver MongoConnectionException: Unable to connect to the primary member of the replica set: Too many thread
注:本文为本站或本站会员原创优质内容,版权属于原作者及清泛网所有,
欢迎转载,转载时须注明版权并添加来源链接,谢谢合作! (编辑:admin)
欢迎转载,转载时须注明版权并添加来源链接,谢谢合作! (编辑:admin)
相关热点
- 1使用TokuMX配置Replica Set集群
- 2C# 操作MongoDb插入、更新、查询
- 3Too many threads are already waiting for a connection
- 4TokuMX vs. MongoDB 性能对比
- 5MongoDB.Driver.MongoConnectionException:...
- 6搭建高可用mongodb集群(二)—— 副本集
- 7MongoDB副本集详解 优于以往的主从模式
- 8mongodb最大连接数配置修改
- 9MongoDB仿关系型数据库Group聚合例子
- 10mongodb, replicates and error: { “...
本月排行
- 1tinygrad:不到1000行代码的深... 15次浏览
- 2搭建高可用mongodb集群(一)—... 9次浏览
- 3使用TokuMX配置Replica Set集群 9次浏览
- 4TokuMX vs. MongoDB 性能对比 9次浏览
- 5MongoDB副本集详解 优于以往的... 8次浏览
- 6MongoDB.Driver.MongoConnectio... 5次浏览
- 7Tokumx 副本集(集群)全攻略 5次浏览
- 8一致性hash和solr千万级数据分... 4次浏览
- 9海量数据相似度计算之simhash和... 3次浏览
- 10一张图告诉你是需要 SQL 还是 Hadoop 3次浏览
评论排行
- 1C++ 读写xml方法整理(持续更新)3次评论
- 2全民OS2次评论
- 3__attribute__2次评论
- 4海量数据相似度计算之simhash和海...2次评论
- 5C++使用OLE/COM高速读写EXCEL的源码2次评论
- 6AfxIsValidAddress 测试内存地址2次评论
- 7C++入门进阶最佳实战2次评论
- 8VC 自绘日历,有绘制日历需求的...2次评论
- 9Reference to ' ' is ambiguous:符号定义重复1次评论
- 10两大桌面系统之战:Yosemite vs Windows 101次评论