Regarding High memory issues in MQ Cluster

60 views
Skip to first unread message

Ujjwal Gupta

unread,
Aug 27, 2024, 9:53:36 AM8/27/24
to rabbitmq-users
We are getting random memory spikes within the RabbitMQ Amazon cluster. Could someone help me fix this issue?

Info:
instance size: m5.large (2 vCPU, 8GB RAM)
brokers count: 3
memory limit per broker: 3GB
 

Attaching relevant metrics with the email:

broker-2-mem.csv
ChannelCount.png
MemUsed.png
ConnectionCount.png

Rilind Harizaj

unread,
Aug 29, 2024, 5:43:45 AM8/29/24
to rabbitmq-users
Hello,


There is documentation from the RabbitMQ Team regarding Memory Usage: https://www.rabbitmq.com/docs/memory-use.

Quote from the team from the documentation: "Obtaining a node memory breakdown should be the first step when reasoning about node memory use."

This might provide you with a smaller search area.


Best,

Rilind

Michal Kuratczyk

unread,
Aug 29, 2024, 5:58:12 AM8/29/24
to rabbitm...@googlegroups.com
Looks like the init container has this hardcoded (your "rabbitmq" container should have the limits you set, it's just the init container that uses 500<B).
You can adjust it with:
```
  override:
    statefulSet:
      spec:
        template:
          spec:
            containers: []
            initContainers:
              - name: setup-container
                resources:
                  limits:
                    cpu: ...
                    memory: ...
                  requests:
                    cpu: ...
                    memory: ...
```

We should probably reduce this hardcoded value. I don't think it needs anything near 500MB. A PR to the cluster-operator (with some testing)
would be appreciated.


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/9dde7ace-5df5-4dad-8248-c004d7741c1fn%40googlegroups.com.


--
Michal
RabbitMQ Team

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.

Michal Kuratczyk

unread,
Aug 29, 2024, 5:58:44 AM8/29/24
to rabbitm...@googlegroups.com
Sorry, replied in the wrong thread.
Reply all
Reply to author
Forward
0 new messages