[rabbitmq-discuss] RabbitMQ 1.6.0 Memory Usage

Matthias Radestock matthias at lshift.net
Thu Sep 24 15:11:37 BST 2009


Gavin M. Roy wrote:
> Is it safe to assume the VM will make use of what it's holding on to and
> it's not a leak of some sort?

I doubt it is a leak, but the VM can hold on to free memory in the
anticipation of future need which may never materialise.

> (rabbit at mq07)1> memory().
> [{total,354514080},

So that's just ~350MB there, which means the rest of the VM process'
memory is technically free but hasn't been returned to the OS, unless
there's a leak in the VM itself.

The docs for erlang:memory/0 mention various caveats regarding the
accuracy of the reported figures, and ways to improve that accuracy,
which is something you may want to look into if you want to investigate
this further.



More information about the rabbitmq-discuss mailing list