Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4864

Mechanism to publish information about connection pools

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • None
    • framework
    • 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.

      Attachments

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

        Activity

          People

            jacopoc Jacopo Cappellato
            jacopoc Jacopo Cappellato
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: