rabbitmq-dump-queue icon indicating copy to clipboard operation
rabbitmq-dump-queue copied to clipboard

RabbitMQ is down

Open darksmoke opened this issue 7 years ago • 3 comments

I had 1.3 million messages in the queue. I ran it like this ./rabbitmq-dump-queue -uri = "amqp: // login:[email protected]: 5672 /% 2Fpaystatus" -queue = StatusQueueFromDLX -max-messages = 5000000 -output-dir = ./tmp 605.000 messages were subtracted and RabbitMQ is down

darksmoke avatar May 30 '17 12:05 darksmoke

I'm sorry the server went down. I hope the messages are intact - rabbitmq-dump-queue never acks the messages, so they should stay in the queue if the client or server goes down.

Do you have RabbitMQ server logs from this incident?

dubek avatar Jun 01 '17 19:06 dubek

I have no affiliation with @darksmoke, but I probably ran into the same problem without using rabbitmq-dump-queue; when a client with a large number of unacked messages disconnects is seems RabbitMQ (3.7 in our case) needs to make a large memory allocation. If that fails RabbitMQ will crash. Whether this is a bug in RabbitMQ (why would it need to allocate memory to hold the whole queue in RAM, if that indeed is what it's doing?) or a design flaw in rabbitmq-dump-queue is perhaps debatable.

magnusbaeck avatar Oct 16 '20 14:10 magnusbaeck

Maybe we can add some warning in the README of this possible outcome.

dubek avatar Oct 16 '20 17:10 dubek