Qpid
  1. Qpid
  2. QPID-3869

Connection Logger tool (QMF1/python) connection-logger is used to provide detailed information about connections made to a broker.

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Python Tools
    • Labels:
      None
    • Environment:

      Python QMF1 tools

      Description

      connection-logger is used to provide information about connections made to a broker.

      Using qpid-stat for connections is OK but it doesn't provide information as to whether a connection relates to a producer or consumer as this information can only really be derived from the associations between connection, session and binding.

      The Connection Logger tool creates the associations and displays information based on this additional knowledge.

      In default mode connection-logger lists the connections made to a broker along with information about sessions such as whether any subscriptions are associated with the session (if a session has no subscriptions then it's quite likely to be a "producer only" session, so this knowledge is quite useful).

      In "log queue and binding" mode the information provided is very similar to qpid-config -b queues but with additional connection related information provided as with default mode.

      1. connection-logger
        8 kB
        Fraser Adams
      2. connection-logger
        12 kB
        Fraser Adams

        Activity

        Hide
        Fraser Adams added a comment -

        Updated with more or less a complete rewrite of the algorith.

        The original version is functionally fine but it uses linear searches to dereference QMF Object References (pretty similar to qpid-config really). This is OK and quite readable, but for large numbers of Connections/Queues the performance gets totally trashed.

        The latest version dereferences the QMF objects into Maps keyed by ObjectId it also resolves the 0..* associations between Connection and Session and Session and Subscription in order to work out which connections are likely to be producer only Connections.

        Show
        Fraser Adams added a comment - Updated with more or less a complete rewrite of the algorith. The original version is functionally fine but it uses linear searches to dereference QMF Object References (pretty similar to qpid-config really). This is OK and quite readable, but for large numbers of Connections/Queues the performance gets totally trashed. The latest version dereferences the QMF objects into Maps keyed by ObjectId it also resolves the 0..* associations between Connection and Session and Session and Subscription in order to work out which connections are likely to be producer only Connections.

          People

          • Assignee:
            Unassigned
            Reporter:
            Fraser Adams
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development