[
https://issues.apache.org/jira/browse/RATIS-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
runzhiwang updated RATIS-839:
-----------------------------
Attachment: image-2020-04-06-13-58-24-681.png
> Memory leak of LogAppender
> --------------------------
>
> Key: RATIS-839
> URL: https://issues.apache.org/jira/browse/RATIS-839
> Project: Ratis
> Issue Type: Bug
> Reporter: runzhiwang
> Priority: Major
> Attachments: RATIS-839.001.patch, image-2020-04-06-13-48-10-703.png,
> image-2020-04-06-13-58-24-681.png
>
>
> *What's the problem ?*
> When run hadoop-ozone for 4 days, datanode memory leak. When dump heap, I
> found there are 460710 instances of GprcLogAppender.
> !image-2020-04-06-13-48-10-703.png!
>
> *What's the reason ?*
> From the code, when
> [removeSender|[https://github.com/apache/incubator-ratis/blob/master/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderState.java#L431]],
> it did not call LogAppender::stopAppender.
>
> *How to fix ?*
> To avoid ** forgetting stopAppender, I stopAppender in removeAll.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)