[rabbitmq-discuss] RabbmitMQ consuming CPU and Memory

Simon MacMullen simon at rabbitmq.com
Fri Jun 1 15:08:01 BST 2012


On 30/05/12 16:00, Paul Gross wrote:
> We set up a cron job to run "rabbitmqctl report" every 5 minutes. Here
> is the last report before CPU and memory spiked:

Hi Paul, thanks for this.

So something is rather suspicious. You have few queues / connections / 
channels, but a lot of process memory is in use. And there are a lot of 
processes (787, which is not a lot in the grand scheme of things but is 
a lot when idle).

And you have a run_queue of 261 (very approximate equivalent of load 
average), which is very high indeed. So all those processes are doing 
something.

This is, of course, not a good situation to be in.

Could you alter your cron job to include:

rabbitmqctl eval 
'lists:sublist(lists:reverse(lists:sort([{process_info(Pid,memory), Pid, 
process_info(Pid), process_info(Pid, current_stacktrace)} || Pid<- 
processes()])), 50).'

so that we can try to see what on earth these processes are?

Cheers, Simon
-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list