亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

關(guān)于Mongodb的“無法從傳輸連接中讀取數(shù)據(jù)”

系統(tǒng) 2484 0

1.初步判定是c#官方驅(qū)動沒能及時釋放連接: http://stackoverflow.com/questions/7446528/mongodb-c-sharp-driver-doesnt-release-connections-then-errors

How many connections does each mongos need?
In a sharded configuration will have 1 incoming connection from the client but may need 1 outgoing connection to each shard (possibly mongos?times the number of nodes if the shard is backed by a replicaset).
This means that the possible number of open connections that a server requires could be ?(1 + (N*M) * C)where N = number of mongos?shards, M = number of replicaset nodes, and C = number of client connections.

Why does ? mongos? never seem to give up connections??
mongos uses a set of connection pools to communicate to each shard (or shard replicaset node). These pools of connections do not currently
constrict when the number of clients decreases. This will lead to a possibly large number of connections being kept if you have even used the mongos
instance before, even if it is currently not being used.?

How can I see the connections used by mongos? ??
Run this command on each instance: mongos
db._adminCommand("connPoolStats" );?

https://jira.mongodb.org/browse/CSHARP-331

2.設(shè)置了sockettimeout=300000沒能生效: http://www.mongodb.org/display/DOCS/Connections ,單位應(yīng)該是ms,不行的話換sockettimeoutms試試~~

應(yīng)該就是這個原因了,是sockettimeout的單位是tick,不是毫秒。

?

?

?

3.剛開始全部啟動測試時,很有可能崩掉一大片

?

4. ? ?社區(qū)給我的答案,沒試過

? http://www.mongodb.org/display/DOCS/Troubleshooting#Troubleshooting-Socketerrorsinshardedclustersandreplicasets

?

5.2012-04-11補充,對mongo重新做了些測試,發(fā)現(xiàn)有兩種情況會導致,一個連接超時,默認是30s,另外一個是連接的關(guān)閉,不要輕易調(diào)用connect.close

關(guān)于Mongodb的“無法從傳輸連接中讀取數(shù)據(jù)”


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 这里只有精品久久 | 亚洲一级毛片在线观播放 | 一级特黄特黄毛片欧美的 | 一级毛片不卡免费看老司机 | 久草热久草在线 | 国产91在线精品福利 | 免费在线一区二区三区 | 国产女人久久精品 | 一级a欧美毛片 | 亚洲欧美日韩精品 | 亚洲精品成人一区二区www | 亚洲成人免费在线观看 | 亚洲毛片在线看 | 99国产欧美久久精品 | 99爱这里只有精品 | 久久66热re国产毛片基地 | 欧美激情 亚洲 | 华人欧美国产在线精品 | 国产91一区二这在线播放 | 天天躁日日躁狠狠躁综合 | 99在线在线视频免费视频观看 | 色婷婷精品视频 | 久久riav.com | 成人高清视频在线观看大全 | 亚洲色视频在线播放网站 | 91精品中文字幕 | 亚洲国产成人久久一区久久 | 97精品国产手机 | 国产一级αv片免费观看 | 欧美日韩在线精品成人综合网 | 国产日韩欧美亚洲精品95 | 中国男女全黄大片一级 | 久久久久久久综合狠狠综合 | 亚洲成人在线观看视频 | 在线免费观看一级毛片 | 九九久久久久午夜精选 | 色花堂国产精品第二页 | 四虎影视最新 | 欧美孕妇乱大交xxxxx | 狠狠色丁香婷婷综合精品视频 | a一级毛片免费高清在线 |