Memory leak issue in Kie Session Drools 6.1.X

最后都变了- 提交于 2019-12-13 07:39:19

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!