Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-4288

PID and Platform info should be cached and reused for subsequent connections

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.18
    • 0.19
    • JMS AMQP 0-x
    • None

    Description

      While investigating the reasons for the java client occasionally not being able to negotiate the connection within a reasonable time, we noticed that there is often a time gap between receiving connection-start and the client responding with connection-start-ok.

      Upon further investigation it appears that getPid() and getPlatformInfo() is a contributory factor.

      These values are per JVM and there is no reason to fetch them for every connection. Instead we should fetch them in a static block and then return the cached value when the getters are called.

      Attachments

        Activity

          People

            rajith Rajith Muditha Attapattu
            rajith Rajith Muditha Attapattu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: