GitHub user jfraudeau opened a pull request:

    https://github.com/apache/jena/pull/173

    Solving a memory leak from LPRuleEngine

    Each time a `LPRuleEngine` gets called to find a triple for which a cached 
`Generator` exists in `tabledGoals` a new `ConsumerChoicePointFrame` is 
registered as a consumer of this Generator.
    The leak is that it is never unregistered from the consumer, the solution 
was simply to call the unregistering from the `close()` method of the 
`ConsumerChoicePointFrame`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jfraudeau/jena master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/173.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #173
    
----
commit 1b49b0359fb48aa926c9aa22d1b30426ce92c77d
Author: Jérémie Fraudeau <[email protected]>
Date:   2016-09-29T21:10:22Z

    Add failing test for memory leak
    
    ConsumerChoicePointFrame leaks from LPBRuleEngine through cached
    Generator

commit da6fff46b3383335bf58abe5e25f51cde8ebd51e
Author: Jérémie Fraudeau <[email protected]>
Date:   2016-09-29T21:28:13Z

    Resolve memory leak
    
    Unregister ConsumerChoicePointFrame from Generator consumerCP uppon
    closing

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to