You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2023/08/24 09:27:00 UTC

[jira] [Commented] (RATIS-925) Memory leak of RaftServerImpl for no remove from static RaftServerMetrics::metricsMap

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

Sammi Chen commented on RATIS-925:
----------------------------------

The issue is already fixed now. The RaftServerImpl#raftServerMetrics is removed from the METRICS map during RaftServerImpl close. 

> Memory leak of RaftServerImpl for no remove from static RaftServerMetrics::metricsMap
> -------------------------------------------------------------------------------------
>
>                 Key: RATIS-925
>                 URL: https://issues.apache.org/jira/browse/RATIS-925
>             Project: Ratis
>          Issue Type: Sub-task
>            Reporter: runzhiwang
>            Assignee: runzhiwang
>            Priority: Major
>         Attachments: screenshot-1.png, screenshot-2.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> *What's the problem ?* 
>  As the image shows, there are 2066 instances of RaftServerImpl, most of them are Closed, and should be GC, but actually not.
> !screenshot-1.png!
> *What's the reason ?*
>  You can find from the image 2040 RaftServerImpl were held by RaftServerMetrics::metricsMap which is a staic map 
>  !screenshot-2.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)