What's wrong about this?
mongodb3.01 x64 + win8.1 64 + CSharpDriver-2.0.0-rc0
MongoDB.Driver.MongoWaitQueueFullException Message:
“MongoDB.Driver.MongoWaitQueueFullException”类型的未经处理的异常在 mscorlib.dll 中发生
其他信息: The wait queue for acquiring a connection to server localhost:27017 is full.
Would you meet the exception and how to prevent it?
You application exceeded limit of opened connections. Default connection pool size is 100.
You can set pool size on creating MongoClient
new MongoClient("mongodb://localhost/?maxPoolSize=555");
or
new MongoClient(new MongoClientSettings { MaxConnectionPoolSize = 555, Server = new MongoServerAddress("localhost") });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With