You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "runzhiwang (Jira)" <ji...@apache.org> on 2020/04/06 05:52:00 UTC
[jira] [Created] (RATIS-839) Memory leak of LogAppender
runzhiwang created RATIS-839:
--------------------------------
Summary: Memory leak of LogAppender
Key: RATIS-839
URL: https://issues.apache.org/jira/browse/RATIS-839
Project: Ratis
Issue Type: Bug
Reporter: runzhiwang
Attachments: image-2020-04-06-13-48-10-703.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)