Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2361

Memory Leak Due to Netty Close Listeners

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.9.4.1
    • Component/s: HYR - Hyracks
    • Labels:
      None

      Description

      Currently, each ChunkedResponse object creates a PrintWriter that allocates 8K for its StreamEncoder. There is a channel close listener that is registered in ChunkedNettyOutputStream that prevents the ChunkedResponse from being garbage collected until the request connection is closed. However, if the connection keepAlive is set, the connection will not be closed until the client decides to close it and therefore the ChunkedResponse can't be garbage collected until then. We need to revisit registering the close listeners and ensure all request based resources can be released as soon as the response is closed.

        Attachments

          Activity

            People

            • Assignee:
              mhubail Murtadha Makki Al Hubail
              Reporter:
              tillw Till Westmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: