[rabbitmq-discuss] rabbitmq memory usage

Sean Allen sean at monkeysnatchbanana.com
Thu Jun 6 16:36:24 BST 2013

On Thu, Jun 6, 2013 at 10:38 AM, Simon MacMullen <simon at rabbitmq.com> wrote:

> On 06/06/13 15:03, Ceri Storey wrote:
>> I'm sure that one of the Rabbit team themselves can shed a bit more
>> light on this, but AIUI RabbitMQ uses ETS in-memory tables to index the
>> queues,
> Minor correction / clarification: the in-memory cost is per-message in the
> message store, not queues per se. So a message which ends up in lots of
> queues incurs the cost once.
>  so with some back of the envelope arithmetic your rabbit is
>> using approximately 175bytes per message. So on the face of it, that
>> might look a bit odd, but doesn't seem unreasonable.
> That cost is about right.

Is there a base per message size for an individual message?
If memory usage is a concern, would we be better batching many items into a
single message and splitting them apart later?

> Also, note that the OP did not specify the version of RabbitMQ used, but
> it looks like 2.x. 3.x will helpfully separate out the memory used by the
> message store index. See http://www.rabbitmq.com/**memory-use.html<http://www.rabbitmq.com/memory-use.html>
2.8.1 right now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130606/779f71d3/attachment.htm>

More information about the rabbitmq-discuss mailing list