Marcin-Pankowski opened a new pull request, #7313: URL: https://github.com/apache/incubator-kie/pull/7313
**Thank you for submitting this pull request** **Issue**: * https://github.com/apache/incubator-kie-issues/issues/2427 **Description** `KafkaProcessInstances.clearEventTypes` and `waitingForEventType` open a RocksDB iterator via `prefixScan` and never close it. `clearEventTypes` runs for every process instance, so native memory grows until the pod is OOMKilled under load. This PR wraps both iterators in try-with-resources and reads the single value inside the block. No behaviour change otherwise; the unused `KeyValue` import is removed. Measured with Kogito 10.2.0 (1 CPU / 2 GB pod, 100 concurrent users): 25 → 571 processes/s, pod memory flat at ~320 MiB instead of OOMKilled. Details, numbers and a video walkthrough are in the linked issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
