asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till (JIRA)" <>
Subject [jira] [Created] (ASTERIXDB-2361) Memory Leak Due to Netty Close Listeners
Date Tue, 10 Apr 2018 00:06:00 GMT
Till created ASTERIXDB-2361:

             Summary: Memory Leak Due to Netty Close Listeners
                 Key: ASTERIXDB-2361
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: HYR - Hyracks
    Affects Versions: 0.9.3
            Reporter: Till
            Assignee: Till
             Fix For: 0.9.4

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.

This message was sent by Atlassian JIRA

View raw message