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

an inbalance in use of the CurrentActor stack holds 0-10 connections in memory after they are closed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9
    • Component/s: Broker-J
    • Labels:
      None

      Description

      An inbalance in use of the CurrentActor stack holds 0-10 connections in memory after they are closed. Simply by opening and closing hundreds of connections, the broker can made to OOM. Analysis of the heap dump shows that the Threadlocal stacks used for CurrentActor are holding the connections in memory.

        Activity

        Hide
        gemmellr Robbie Gemmell added a comment -

        Andrew can you review please? Thanks.

        Show
        gemmellr Robbie Gemmell added a comment - Andrew can you review please? Thanks.
        Hide
        andrew.kennedy Andrew Kennedy added a comment -

        I would have moved the saving of _logActor in ServerConnection to the no-arg ctor, just to make it explicit what we're doing, but they are (should be) semantically identical.

        Show
        andrew.kennedy Andrew Kennedy added a comment - I would have moved the saving of _logActor in ServerConnection to the no-arg ctor, just to make it explicit what we're doing, but they are (should be) semantically identical.
        Hide
        andrew.kennedy Andrew Kennedy added a comment -

        Works.

        Show
        andrew.kennedy Andrew Kennedy added a comment - Works.

          People

          • Assignee:
            andrew.kennedy Andrew Kennedy
            Reporter:
            gemmellr Robbie Gemmell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development