OFBiz
  1. OFBiz
  2. OFBIZ-4864

Mechanism to publish information about connection pools

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: SVN trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None

      Description

      Please review the attached patch that I would like to commit to trunk:

      • enabled by default the DebugManagedDataSource wrapper around ManagedDataSource
      • enhanced the DebugManagedDataSource wrapper to:
        • print log messages only at verbose level (instead of always)
        • if possible print additional information about the connection status
        • added new method that returns information about the connection pool settings/status
      • added new static method to DBCPConnectionFactory to return information about the pools
      • new screen in the webtools where information about each pool/helper is shown (see screenshot)

      What do you think? The code is safe and it will not have any impact on performance (unless you enable verbose logging on DebugManagedDataSource). The information provided by the screen can be very useful to analyze the status of the pools.

      1. pools-status.png
        87 kB
        Jacopo Cappellato
      2. pools-status.patch
        13 kB
        Jacopo Cappellato

        Activity

        Hide
        Jacques Le Roux added a comment -

        I like the feature, did not review, nor test, yet

        Show
        Jacques Le Roux added a comment - I like the feature, did not review, nor test, yet
        Hide
        Jacopo Cappellato added a comment -

        Committed to trunk in rev. 1338230

        Show
        Jacopo Cappellato added a comment - Committed to trunk in rev. 1338230

          People

          • Assignee:
            Jacopo Cappellato
            Reporter:
            Jacopo Cappellato
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development