If someone finds this useful as one of the possible causes of such a problem (since I havenโt found any specific answer anywhere), we had a similar problem with the rabbitmq server (linux, 64-bit, constant queue, watermarks with configuration by default)
eheap_alloc: Unable to allocate yyy bytes of memory (heap type)
eheap_alloc: Unable to allocate xxx bytes of memory (of type "old_heap")
The problem was the reordering of too many messages at once. Our โcontrolโ code used the โreceiveโ message with the option of re-queuing without limiting the number of messages to receive and re-queue (in our case, all messages in the queue, which was 4K) Thus, at that time he tried to add all these messages to Queue, server failure with the message above.
hope he saves a few hours to someone.
source share