Biplob68 opened a new issue, #6487:
URL: https://github.com/apache/incubator-kie-drools/issues/6487

   I’m building a fraud detection system using Drools (7.x/8.x) where some 
rules require event-based conditions such as:
   
   “More than 5 transactions in the last 12 hours”
   
   “3 declines followed by 1 approval within 6 hours”
   
   Currently, I use a stateful KieSession with Drools Fusion (@role(event), 
window:time(12h)), and I insert each transaction event as a fact.
   
   After running for several hours under load (200–300 TPS), I notice:
   
   Heap usage keeps growing,
   
   GC pressure increases,
   
   Eventually, the JVM becomes unstable due to retained event facts.
   
   It looks like Drools keeps all event facts for the entire 12-hour window in 
memory, which is expected, but I want to know what the best production approach 
is to avoid memory problems.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to