[SERVER-20023] Multiple open connections Created: 19/Aug/15  Updated: 19/Aug/15  Resolved: 19/Aug/15

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: sanjeev kumar yadav Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File serverstatus.txt    
Operating System: ALL
Participants:

 Description   

For continuous insertion of data in mongo using Java API (MongoClientOptions.Builder) create multiple connections. These connections don't even kill and after reaching to a certain limit you mongodb get crashed.

I am linking http://stackoverflow.com/questions/29469317/checking-mongodb-created-connection.

I hope it to be resolved as soon as possible.



 Comments   
Comment by Ramon Fernandez Marina [ 19/Aug/15 ]

sanjeev_yadav248, the SERVER project is for reporting bugs on the MongoDB server, and without logs that can help us determine if there's a bug there's not much we can do. I'm going to close this ticket for now, but if you can produce evidence of a sever bug please follow up on this ticket and we'll reopen it for investigation.

Note that 1000 connections is a small number, so if a machine is having issues with it I'd recommend looking at OS resources (does the machine have enough RAM) and limits (e.g.: is mongod allowed to open more than 1024 files) to track down the source of the problem.

Regards,
Ramón.

Comment by sanjeev kumar yadav [ 19/Aug/15 ]

Since it was production machine, we have given it to particular vendor for data recovery. So I don't have logs right now. But the same issue I am still facing on amazon AWS server. Every day my connection in mongo increases. Once it reached around 1000 connections, I am afraid it will crash.

I have attach my db.serverstatus() in text file. You can see around 105 connections are already created. I have already mentioned since static behavior only one instance should be created. On java side its loaded only once but on mongodb side connections are increasing continuously.

Comment by Ramon Fernandez Marina [ 19/Aug/15 ]

sanjeev_yadav248, as William and Ross mentioned in stack overflow the number of connections are expected, but they should not crash mongod – can you please upload logs for the server from startup until the crash you mention?

Thanks,
Ramón.

Generated at Thu Feb 08 03:52:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.