Commons Pool
  1. Commons Pool
  2. POOL-78

[pool] maxActive, maxIdle, maxTotal apply to all keys in a GenericKeyedObjectPool

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

      Description

      The documentation implies that the maxActive, maxIdle, and maxTotal values
      apply to each keyed pool independently, so that the maximum number of objects
      that a pool could hold would be number of keys times maxTotal. Unfortunately,
      maxTotal applies to all keys. So, if one key contains maxTotal objects, an
      object must be passivated, before another one can be added to the pool under a
      different key.

        Activity

        Stu Brock created issue -
        Hide
        Sandy McArthur (from Bugzilla import) added a comment -

        I've updated the trunk so the JavaDocs match the actual behavior. The javadocs
        have been wrong for at least 2 years.

        FYI: The next major release (Pool 2) will include a keyed object pool where the
        limits are implemented as per key settings.

        Show
        Sandy McArthur (from Bugzilla import) added a comment - I've updated the trunk so the JavaDocs match the actual behavior. The javadocs have been wrong for at least 2 years. FYI: The next major release (Pool 2) will include a keyed object pool where the limits are implemented as per key settings.
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 39341 12343033
        Henri Yandell made changes -
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Project Commons [ 12310458 ] Commons Pool [ 12310488 ]
        Affects Version/s unspecified [ 12311647 ]
        Key COM-2881 POOL-78
        Component/s Pool [ 12311128 ]
        Henri Yandell made changes -
        Bugzilla Id 39341
        Fix Version/s 2.0 [ 12311985 ]
        Phil Steitz made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Resolved Resolved Closed Closed
        1607d 13h 40m 1 Phil Steitz 12/Sep/10 18:43

          People

          • Assignee:
            Unassigned
            Reporter:
            Stu Brock
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development