Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rabbitmq beam.smp process utilize most of the Memory size for no reason

Rabbitmq beam.smp process utilize most of the Memory size for no reason

RabbitMQ version: 3.7 erlang 22

I don't have any special configuration or anything

I don't use celery or anything except Rabbitmq.

I searched for this issue and all I found is something related to celery!

What's the problem with this RabbitMQ .. it can't stand for couple of days without issues!

like image 671
Meto Avatar asked Oct 19 '25 01:10

Meto


2 Answers

CPU utilization could be Erratic with large number of mirrored queues. Please mention the following RabbitMQ deployment details:

RabbitMQ v3.7
Erlang/OTP v22
Ubuntu 16.04.5 LTS
Linux 4.15.0-32-generic x86_64

mention dstat --cpu check for RabbitMQ nodes utilization w.r.t CPU (user + system)

Additionally u can do what It is possible to make schedulers that currently do not have work to do using the +sbwt flag:

RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="+sbwt none"

The value of none can reduce CPU usage on systems that have a large number of mostly idle connections.

like image 124
Prakhar Nigam Avatar answered Oct 20 '25 23:10

Prakhar Nigam


Several reasons can increase the CPU usage, you are not providing enough information.

What you should do is:

  1. Check the rabbitmq logs, to see if there is some error
  2. Check if you have some publisher that are trolling the server
  3. Check the number of the queues/binding, maybe you are creating too many queues/binding

you can also enable this rabbitmq plugin https://github.com/rabbitmq/rabbitmq-top to see with process is using all the CPU

like image 24
Gabriele Santomaggio Avatar answered Oct 21 '25 01:10

Gabriele Santomaggio