0

im first time here :) The server hosting RabbitMQ is constantly consuming cache and buffer and continues to grow. The message flow has not increased. After reaching the limit, the service goes down.

RabbitMQ screenshot

In RabbitMQ config set watermark 0.4

5
  • you say message flow has not increased, but that's not relevant. Seems to me that messages are produced faster than they are consumed. You should check on this issue. Commented Dec 10, 2024 at 12:55
  • I meant rabbitmq started consuming more RAM not because of the larger stream of incoming messages that would have to be processed. Commented Dec 10, 2024 at 13:06
  • Stack Overflow is Q&A format (one focused question, answered by a vareity of other users), what is your actual question here? Commented Dec 10, 2024 at 21:21
  • 1
    I'm unsure what you are expecting in this case. Did you expect RabbitMQ to behave differently in this cas ? If so, why and how? Commented Dec 10, 2024 at 21:22
  • Please provide enough code so others can better understand or reproduce the problem. Commented Dec 15, 2024 at 12:41

1 Answer 1

0

It looks like there is a forgotten acknowledgement ACK after a message is received in the consumer.

Setting {noAck: true} should solve the problem.

Here is the source of the answer https://www.rabbitmq.com/tutorials/tutorial-two-javascript#forgotten-acknowledgment

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.