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

[Java] Reduce memory overhead of Sessions

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.15
    • Component/s: Java Common
    • Labels:
      None

      Description

      The 0-10 Session object creates a 64Kb command buffer by default... in the context of a broker which may have thousands of concurrently open sessions this is too large a burden.

      Observation has shown that most common use cases have relatively low utilization of this buffer, and that the therefore we can replace the use of a fixed size array with an Integer keyed Map.

      If performance / autoboxing overhead is observed to be an issue, we could later update to use a primitive int base Map-like implementation such as that available here: http://acs.lbl.gov/software/colt/

        Attachments

          Activity

            People

            • Assignee:
              rgodfrey Rob Godfrey
              Reporter:
              rgodfrey Rob Godfrey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified