You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/12/15 02:53:00 UTC

[jira] [Commented] (ROCKETMQ-290) Memory leaks in org.apache.rocketmq.store.ha.WaitNotifyObject#waitingThreadTable

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

ASF GitHub Bot commented on ROCKETMQ-290:
-----------------------------------------

Jason918 commented on issue #178: [ROCKETMQ-290] Fix memory leak in WaitNotifyObject#waitingThreadTable
URL: https://github.com/apache/rocketmq/pull/178#issuecomment-351899059
 
 
   @zhouxinyu Unit tests added, please check these out. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Memory leaks in org.apache.rocketmq.store.ha.WaitNotifyObject#waitingThreadTable
> --------------------------------------------------------------------------------
>
>                 Key: ROCKETMQ-290
>                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-290
>             Project: Apache RocketMQ
>          Issue Type: Bug
>          Components: rocketmq-store
>    Affects Versions: 4.1.0-incubating
>            Reporter: Jas0n918
>            Assignee: yukon
>            Priority: Critical
>
> There are only add-element operations for waitingThreadTable in Class org.apache.rocketmq.store.ha.WaitNotifyObject.
> Each time a new thread calls Method WaitNotifyObject#allWaitForRunning, waitingThreadTable get new element. 
> This leak actually happens in Master Broker when Slave reconnect to the Master, a new HAConnection is created, and WaitNotifyObject#allWaitForRunning will be called in LogHAConnection.WriteSocketService#run.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)