We have this behavior of MongoDB connection which is unable to be traced; the mongoDB connections after some application idle time starts getting MongoDB connection error for every request made by the application. Only after restart of the AppServer ('Tomcat', the application is deployed on) the MongoDB connections are reacquired and works good.
Want to know if anyone have came across such an issue and probable configuration solution. One another way which I think is then to Exception handle and do a retry for getting connection.
NOTE: Java 1.7, Spring 3.1.x have been used for Server code. MongoDB Version: 2.6.9. Mongo Driver: mongo-2.10.1
Thanks in advance for your time.
Abhijeet
Aucun commentaire:
Enregistrer un commentaire