[SERVER-3146] mongodb didn't release the connections Created: 26/May/11 Updated: 30/Mar/12 Resolved: 29/May/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 1.8.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | davyzhang | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 2 |
| Labels: | connection | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
centos5.5 |
||
| Operating System: | Linux |
| Participants: |
| Description |
|
I have a mongo server with high read/write in a short time. I used python and pymongo, when I wake up this morning I found no connection can make to mongod master cause it's connections reached 19992, its a pretty much scary number even I stopped all the program, the connection number seems no change I have 1 master and 7 slaves insert query update delete getmore command flushes mapped vsize res faults locked % idx miss % qr|qw ar|aw netIn netOut conn repl time I checked the socket connections Active Internet connections (servers and established) insert query update delete getmore command flushes mapped vsize res faults locked % idx miss % qr|qw ar|aw netIn netOut conn repl time localhost:27417 0 0 0 0 2 1 0 624m 2.87g 287m 0 0 0 0|0 7|0 162b 1k 19992 M 10:36:16 |
| Comments |
| Comment by davyzhang [ 29/May/11 ] |
|
Sorry.... I didn't keep the log for long, after I restart the mongodb the previous log was.... gone. Till now the problem didn't show up, I will submit the log if it shows up again. and is it possible to add a command to view the detail of connections like netstat , which ip is using this connection and the last query from this conection. Even manually kill the connection at server side. Many thanks! |
| Comment by Eliot Horowitz (Inactive) [ 27/May/11 ] |
|
Can you attach server logs |
| Comment by davyzhang [ 27/May/11 ] |
|
and today the same problem happened in my test server again I can not connect to db using mongo shell even mongo localhost:27417/dt_base |
| Comment by davyzhang [ 26/May/11 ] |
|
> db.serverStatus(1) , }, , , , }, , , , , , , |