rabbit.js icon indicating copy to clipboard operation
rabbit.js copied to clipboard

Blocking Connections

Open GordyD opened this issue 11 years ago • 1 comments

I am having issues with long living connections not closing and it resulting in my consumer grinding to a halt. We are experiencing this whilst under high load. Is there any reason why connections would be staying alive? Is there anything you can suggest to address this issue?

GordyD avatar Feb 17 '15 17:02 GordyD

Node.JS can have pretty unhelpful behaviour under load, so it's difficult to narrow down what might be the problem. As a guess though, it's easy to ignore back-pressure from publishing, and this may mean you are shovelling lots of messages into buffers that are already full -- Node.JS won't prevent you from doing this.

I would have a look at:

  • What RabbitMQ thinks is happening (connection state, message rates, memory use of the server, ...)
  • The memory use of Node.JS as load increases

and check that you are responding to write returning false.

squaremo avatar Mar 14 '15 16:03 squaremo