When using the dynamic optimization, mvel holds a reference to the current ClassLoader causing a potential PermGen leak that is evident especially when multiple KieBases are created.
Switching to the reflective optimizer fixes this problem.
Fixed by https://github.com/droolsjbpm/drools/commit/ca2611be9
This is a memory (permgen) leak. The fix is critical for 6.0.0.GA. Rajesh, QA, can you please review and set the flags. We have the fix, just waiting to cherry-pick into 6.0.0. Thank you.
I was unable to reproduce this issue with BRMS CR1. I have reviewed the code change that was done and it seems to fix the original issue.