BRMS throws an OOME with heap retention in ksession objects
Environment
- BRMS 5
Issue
- BRMS hit an OOME. The heap dump showed most of the heap used by session objects referenced by a ReteooRuleBase object, which stored the sessions in its statefulSessions map.
Resolution
- Be sure that kSessions are disposed. Ideally, they should be disposed in a finally clause to ensure no prior exceptions could cause it to be skipped.
Root Cause
- The sessions were not disposed. They will persist in this map until disposed.
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.