RockteMQ-AI commented on issue #232: URL: https://github.com/apache/rocketmq-operator/issues/232#issuecomment-5364748558
**Issue Evaluation** Category: `enhancement` | Status: **Evaluated** **Feasibility:** feasible **Scope:** Broker container image and resource configuration **Compatibility:** Needs to handle both cgroup v1 and v2 environments. With the Linux kernel moving to cgroup v2 as the default (Ubuntu 22.04+, RHEL 9+), the RocketMQ Operator and Broker images need to support cgroup v2 for correct resource limit detection. The JVM inside the Broker container reads cgroup v1 paths (`/sys/fs/cgroup/memory/...`) for memory limits. On cgroup v2 systems, these paths don't exist, causing the JVM to fall back to host-level resource detection. This requires: - Updating the JVM flags to use `-XX:+UseContainerSupport` (Java 11+) - Ensuring the Broker startup script detects cgroup version - Testing on both cgroup v1 and v2 nodes --- *Automated evaluation by RockteMQ-AI* -- 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]
