By default, when the RabbitMQ server uses above 40% of the available RAM, it raises a memory alarm and blocks all connections that are publishing messages.
The memory threshold at which the flow control is triggered can be adjusted by editing the configuration file, but how to edit RabbitMQ configuration file for an instance on AWS?