[rabbitmq-discuss] 700k msgs using 6.3 GiB?
matthias at rabbitmq.com
Thu May 16 03:44:35 BST 2013
On 16/05/13 01:52, François Beausoleil wrote:
> Attached are a report and screenshot showing my RabbitMQ instance
> using 6.3 GiB of RAM for a mere 700,000 3 KiB messages.
> What did I do wrong?
There are a number of empty queues with fairly high memory usage.
Judging from the sequence numbers - several hundred million - and uptime
(~3 weeks) they are probably moving at a reasonable pace under normal
conditions, though obviously not much is moving at the time of the
report since the producers were blocked.
Such active queues take up substantially more memory than idle queues.
Much of that will be garbage that hasn't been collected yet. That
garbage in turn may reference message payloads. That's how megs of queue
memory can turn into gigs of binary memory since non-tiny message
payloads are not counted towards queue memory but binary memory.
So I don't think there is anything unusual going on here. Having said
that, it would really help our future investigation if you
1) ran the most recent rabbit version (3.1.0)
2) ran the most recent Erlang version (R16B)
3) disabled non-essential plug-ins
More information about the rabbitmq-discuss