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

Eric Tschetter commented on CURATOR-14:
---------------------------------------

If we are introducing a mechanism that allows for unregistering a listener, I 
wonder if we need the Soft cache.  A part of me thinks that the semantics 
should be that recipes are in charge of unregistering their stuff and if they 
don't, they have a bug.  If we were to take that tact, then it would seem like 
a Multimap would be just fine, I think?

Or, is there another reason to have the soft values that I'm not thinking of?
                
> Memory leak in Curator watches
> ------------------------------
>
>                 Key: CURATOR-14
>                 URL: https://issues.apache.org/jira/browse/CURATOR-14
>             Project: Apache Curator
>          Issue Type: New Feature
>          Components: Recipes
>    Affects Versions: 2.0.0-incubating
>            Reporter: Brandon Beck
>            Priority: Minor
>         Attachments: CURATOR-14-dispatchingwatcher.patch, 
> CURATOR-14-draft-2.patch, CURATOR-14-draft-3.patch, CURATOR-14.patch, 
> MemoryTest.java
>
>
> The JVM runs out of memory if you repetitively create a PathChildrenCache, 
> start it then immediately stop it.  It appears that the memory is taken up by 
> a watch that isn't ever cleaned up.  Curator attempts to do some pooling of 
> watches, but doesn't seem to use the path in the pooling.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to