[rules-users] Possible "memory leak" in 5.3 with update?

thenim thenim at gmail.com
Mon Apr 2 12:01:17 EDT 2012


@laune, not sure how the map relates to the problem I stated. In a map, the
put operation will replace the *value* that is mapped to by that key (from
my understanding). The map should not hold any further references to that
value(?)

The problem here isn't that, it's that the object reference is held on to
somewhere in the internals of the working memory even though the fact handle
is associated with a new object reference (I'm out of my depth here, but I'm
guessing this is what is causing the "leak"). The problem goes away, if I
update the same object (infact I find that my performance is significantly
better, so this is what I do now.)

I guess the references will be held till the session is disposed - which for
me doesn't happen as it's a long running sessions. Anyway, it's interesting
because I thought the rules engine only held weak references to objects...

--
View this message in context: http://drools.46999.n3.nabble.com/Possible-memory-leak-in-5-3-with-update-tp3874271p3878120.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list