[JAVA-466] Connection reset by peer: socket write error Created: 07/Nov/11  Updated: 04/Jun/12  Resolved: 15/May/12

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 2.7
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: jagadesh paladugula Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows7


Attachments: Text File connection-error.txt    
Issue Links:
Duplicate
duplicates JAVA-499 Add support for connection validation Closed

 Description   

After starting the server, when I access the application, it works fine. After some time letsay 15 mins when I try to do something it throws me a Connection reset by peer: socket write error. Looks like some issue with MongoDB Connection Pooling.

I create a Singleton Instance of Mongo to connect to database.



 Comments   
Comment by Jeffrey Yemin [ 04/Jun/12 ]

I wonder why the connections are getting reset. Can you try using "127.0.0.1" instead of "localhost" for the host name? Or try with 2.8.0-RC1, which fixes "localhost" handling?

Comment by Sergey Pichkurov [ 04/Jun/12 ]

Any workaround to solve this issue?

Comment by Jeffrey Yemin [ 15/May/12 ]

Seems like this is a duplicate of JAVA-499.

Comment by Scott Hernandez (Inactive) [ 07/Nov/11 ]

What is the connection limit on the server? db.serverStatus()? Are there any server logs at the same time?

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