[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16432695#comment-16432695
 ] 

ASF subversion and git services commented on ASTERIXDB-2361:
------------------------------------------------------------

Commit e20c7eea498263f92267f4cbc39ad9372006ff6c in asterixdb's branch 
refs/heads/master from [~tillw]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=e20c7ee ]

[ASTERIXDB-2361][HYR] Memory Leak Due to Netty Close Listeners

- user model changes: no
- storage format changes: no
- interface changes:
  - add IServletResponse.notifyChannelInactive()

Change-Id: I40156538d62a3c06b9ccc14338c3f554921a12b8
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2579
Sonar-Qube: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhub...@apache.org>


> 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: Till
>            Priority: Major
>             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
(v7.6.3#76005)

Reply via email to