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

ASF GitHub Bot commented on STORM-1756:
---------------------------------------

Github user srdo commented on the pull request:

    https://github.com/apache/storm/pull/1387#issuecomment-216488648
  
    @HeartSaVioR I saw OOME on one of my branches, because each 
KafkaServerStartable allocates a 130MB byte array for the log cleaner thread. A 
heap dump showed that there were 8 of these in memory at the time of the 
exception. I was going off of http://junit.org/junit4/faq.html#atests_18 to 
explain it, but I can't reproduce it now. I'll close this. 


> Storm-kafka tests leak resources due to retained references to KafkaServer
> --------------------------------------------------------------------------
>
>                 Key: STORM-1756
>                 URL: https://issues.apache.org/jira/browse/STORM-1756
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-kafka
>            Reporter: Stig Rohde Døssing
>            Assignee: Stig Rohde Døssing
>
> Since JUnit keeps a reference to each test class until all tests for a module 
> have run, the KafkaTestBroker fields are not eligible for garbage collection 
> until all tests have run. KafkaTestBroker keeps a reference to 
> KafkaServerStartable/KafkaServer, which allocates resources that are also not 
> eligible for collection. This very quickly causes surefire to run out of 
> memory if this class is used more than a few places.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to