Is RabbitMQ connection in blocking state?

I connect to the RabbitMQ server when the time is displayed in a locked state, and I canโ€™t post a new message. I have RAM 6 GB for free and the disk space is also about 8 GB

how to configure disk space limitation in RabbitMQ

+6
source share
2 answers

I have the same problem. Looks like the rabbitmq server was using more memory than the threshold

http://www.rabbitmq.com/memory.html

I ran the following command to unlock these connections:

rabbitmqctl set_vm_memory_high_watermark 0.6

(default value is 0.4)

+7
source

By default, [disk_free_limit] (source: [1]) should exceed 1.0 times the available RAM. This is true in your case, so you can check what exactly the thread is blocking. To do this, read the [rabbitmqctl man] (source: [2]) and run the last_blocked_by command. This should tell you the reason for the lock.

Assuming that this is memory (and you somehow did not correctly calculate the free space on the disk) to change disk_free_limit, read [configuration rabbitmq.config] (source: [1]), then open the rabbitmq.config file and add the following line: {rabbit, [{disk_free_limit, {mem_relative, 0.1}}]} inside the configuration declaration. My rabbitmq.config file looks like this:

 [ {rabbit, [{disk_free_limit, {mem_relative, 0.1}}]} ]. 

Of course, the exact number is up to you.

Sources

+2
source

Source: https://habr.com/ru/post/914789/


All Articles