Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2086

MongoClientOptions.minConnectionsPerHost() does not work

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.4
    • Component/s: API
    • Labels:
      None
    • Environment:
      windows 10,JDK 8

      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!!!

        1. 3.png
          3.png
          95 kB
        2. 4.png
          4.png
          14 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            jintianxiayu bichangshuo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: