I don't see an option among the (MongoClientOptions) to set a timeout for idle connections from the application to MongoDB. We see that connections opened to the mongodb remain open for hours. How this handled in mongodb, is there any options to set idle connection timeout in mongo? http://api.mongodb.org/java/2.10.1/ (MongoClientOptions)
问问题
14649 次
1 回答
3
MongoDB 支持 idletimeout,但此时并非所有驱动器都受支持。 http://docs.mongodb.org/manual/reference/connection-string/#maxIdleTimeMS
提出了这个功能请求:- https://jira.mongodb.org/browse/JAVA-710
于 2012-12-10T04:25:33.340 回答