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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development