[rabbitmq-discuss] Memory usage for Durable Queues and Persistent Messages

Simon MacMullen simon at rabbitmq.com
Thu Dec 5 15:43:54 GMT 2013

On 05/12/2013 14:14, Dan Gritsko wrote:
> Additionally, when I view the "Memory details" for the primary node for
> this queue, the majority of the memory is occupied by the "Binaries"
> category of the breakdown. The documentation page states that "In-memory
> message bodies show up" in this category. But shouldn't the message
> bodies all be on the disk, and not in memory and affecting the report in
> this way?

Marking a message "persistent" means it will be on disk. But it doesn't 
guarantee it will not be in memory. After all, if it's in memory too it 
can be delivered more quickly. RabbitMQ will keep messages (persistent 
or not) in memory until it starts to come under memory pressure, at 
which point it will start to evict them.

See http://www.rabbitmq.com/memory.html#memsup-paging

So the differences in memory use can probably be explained that the 
nodes had come under different amounts of memory pressure and thus some 
had paged out and some had not.

Cheers, Simon

More information about the rabbitmq-discuss mailing list