[
https://issues.apache.org/jira/browse/ASTERIXDB-2361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Till reassigned ASTERIXDB-2361:
-------------------------------
Assignee: Murtadha Hubail (was: Till)
> Memory Leak Due to Netty Close Listeners
> ----------------------------------------
>
> Key: ASTERIXDB-2361
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2361
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: HYR - Hyracks
> Affects Versions: 0.9.3
> Reporter: Till
> Assignee: Murtadha Hubail
> Priority: Major
> Fix For: 0.9.5
>
>
> 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
(v7.6.3#76005)