[JAVA-2086] MongoClientOptions.minConnectionsPerHost() does not work Created: 13/Jan/16  Updated: 25/Feb/16  Resolved: 25/Feb/16

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

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

windows 10,JDK 8


Attachments: PNG File 3.png     PNG File 4.png    
Issue Links:
Duplicate
duplicates JAVA-2027 Connection pool does not properly ope... Closed

 Description   

I use the class 'MongoClientOptions.Builder' to set some properties when construct a "MongoClient" object. Settings as follows:
connectionsPerHost(10)
minConnectionsPerHost(3)
maxConnectionIdleTime(30000)
when lots of request come the pooled connections come up to 10 and it show the api is right;but 30 seconds later the connections all colsed,nothing left!!!



 Comments   
Comment by Jeffrey Yemin [ 13/Jan/16 ]

This appears to be a duplicate of JAVA-2027, which was fixed in the 3.2.0 driver release. Please confirm by running your test against that release.

Regards,
Jeff

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