[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


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


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.

Comment by Scott Hernandez [ 07/Nov/11 ]

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

Comment by Jeff Yemin [ 15/May/12 ]

Seems like this is a duplicate of JAVA-499.

Comment by Sergey Pichkurov [ 04/Jun/12 ]

Any workaround to solve this issue?

Comment by Jeff Yemin [ 04/Jun/12 ]

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

Generated at Tue Feb 19 23:09:55 UTC 2019 using Jira 7.12.1#712002-sha1:609a50578ba6bc73dbf8b05dddd7c04a04b6807c.