I've developed a CMS(Content Management System) with MONGO DB using JAVA,SpringData-MongoDB for one of our client.But in one environment at client premises called Performance Environment I'm getting the error:
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at org.bson.io.Bits.readFully(Bits.java:48)
at org.bson.io.Bits.readFully(Bits.java:35)
at org.bson.io.Bits.readFully(Bits.java:30)
at com.mongodb.Response.<init>(Response.java:42)
at com.mongodb.DBPort$1.execute(DBPort.java:141)
at com.mongodb.DBPort$1.execute(DBPort.java:135)
at com.mongodb.DBPort.doOperation(DBPort.java:164)
at com.mongodb.DBPort.call(DBPort.java:135)
at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:292)
According to MONGO document I've reduced the tcp_keepalive_time to 300 seconds(default ws 7200 seconds) at the client machine from where the connection have been made to the MONGO REPLICA set.And also changed the values tcp_keepalive_intvl and tcp_keepalive_probes to increase the TCP acknowledgement frequency and also applied the retry logic but still getting the problem in that environment.This problem is particularly happening in that environment not at QA or UAT. Don't know why? And more over why this problem is occurring with MONGO driver not with JDBC driver for RDBMS? Please help me as things are going worse day by day as we don't have to say to the client as why it is happening?
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/1ad27e93-d7dd-4764-8a4b-bcedb22828b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.