问题
I am using state full KieSession in drools 6.1.X. I observed following behaviors about memory usage by KieSession :
In normal load test, it is working fine and avg. processing time is ok. I am also retracting all the inserted fact except some fact that is required always in the session. However, memory usage is increasing sequentially. We guess that this is due to the fact that KieSession is still holding information about inserted facts.
Moreover, we are doing insertion and retraction on each requests. This causes increase in memory usage and on some point of time, processing is very slow and thus creating performance issue in rule engine.
When I am creating a new session after disposing of the current session, the memory usage will be very low as a fresh one and again it is increasing sub sequentially.
Please suggest some work around or is this a bug in KieSession API.
Thanks Shorav
来源:https://stackoverflow.com/questions/37389856/memory-leak-issue-in-kie-session-drools-6-1-x