Converting between Cqv2 and Cqv1 consumes a lot of memory when alarm is triggered. #4797
Unanswered
johanrhodin
asked this question in
Questions
Replies: 1 comment 1 reply
-
I suspect the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that if an memory or disk alarm triggers while converting queues the memory usage for the process grows a lot.
Steps to reproduce (RabbitMQ 3.10.1, Erlang 24.1.7)
Create a queue policy to use cqv2:
Run perf-test and load in 1M messages:
bin/runjava com.rabbitmq.perf.PerfTest -y0 -p -u "smallish" -s 0 --id "smallish" -ad false -f persistent -h $TARGET -pmessages 1000000
Once done remove the queue policy and when it starts logging:
2022-05-11 20:18:40.422355+00:00 [info] <0.2090.0> Converting running queue smallish in vhost rwgvqgbl from v2 to v1
set the disk alarm:
sudo rabbitmqctl set_disk_free_limit 1111G
Now the converter will use much more memory than without the disk alarm:

For information this is what it looks like for the process:

Beta Was this translation helpful? Give feedback.
All reactions