[jboss-jira] [JBoss JIRA] (DROOLS-1364) InMemorySessionFactory has apparent memory leak
Eli Israel (JIRA)
issues at jboss.org
Fri Nov 25 15:45:00 EST 2016
[ https://issues.jboss.org/browse/DROOLS-1364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13328481#comment-13328481 ]
Eli Israel commented on DROOLS-1364:
------------------------------------
I tried running stateless sessions and they leaked memory constantly. Probably because of this item, or something else like it.
I don't think you ought to close this report without doing something.
Alternatively, if you insist that this isn't a bug, then let's open a separate bug to address the issue of the proper usage being nearly impossible to figure out from the current documentation.
> InMemorySessionFactory has apparent memory leak
> -----------------------------------------------
>
> Key: DROOLS-1364
> URL: https://issues.jboss.org/browse/DROOLS-1364
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Reporter: Eli Israel
> Assignee: Maciej Swiderski
>
> I'm running drools with a runtime manager creating using PerRequest strategy and SessionCache turned on. (I process a LOT of requests but I want each one to be isolated)
> The SessionCache properly gets rid of sessions that have hung around too long, which is great.
> But the InMemorySessionFactory keeps a copy of every session it ever created, which -- it seems to me -- impedes garbage collection of unneeded, old sessions.
> It's possible I'm just reading this wrong, but examinations of running code using VisualVM show a LOT of RightTuple objects hanging around, attached to sessions and their GC root appears to be the InMemorySessionFactory.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list