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

Memory Leak Due to Netty Close Listeners

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.3
    • 0.9.4.1
    • HYR - Hyracks
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: