[rabbitmq-discuss] number of Erlang processes being used?

Alvaro Videla videlalvaro at gmail.com
Fri Sep 24 12:59:42 BST 2010


In prod we are using a script like this: http://gist.github.com/595243 to find the number of Erlang processes and then we send that to Graphite to keep some nice graphs about it.

We had the same problem as you, running out of Erlang processes. That happened because our client library was creating one channel per message sent, that meant one new process on the Erlang side AFAIK. We gave the channels specific IDs and the problem got solved.



On Sep 24, 2010, at 7:33 PM, Mario Menti wrote:

> Matthew Sackman wrote:
>> On Fri, Sep 24, 2010 at 12:07:13PM +0100, Mario Menti wrote:
>>> Is there a way to see the number of lightweight Erlang processes
>>> currently in use by rabbitmq? We regularly run out of them, even
>>> with a higher-than-default number being specified (65535), and while
>>> I realise that there may be an underlying issue, it would still be
>>> very useful to monitor the usage.
>> No - there's no way of figuring this out other than the total number of
>> processes being used in the erlang VM. Thus if you're using other
>> applications within the same VM, you won't be able to separate them out.
>> length(erlang:processes()).
>>  will tell you the total number of processes running in the VM.
> Thanks - there's nothing else running in the VM, so this should be good enough.
>> Btw, you're not helping yourselves by running such an old version - we
>> pushed the default limit up to 1e6 around 1.8. You shouldn't have many
>> concerns with raising your limit substantially further (though it will
>> mean the VM will take up a bit more memory which might be relevant if
>> you're running in an embedded environment). The absolute maximum is 16bn
>> but if you use that I think I found the base VM on its own takes up some
>> 400MB after booting (just due to the various arrays and bookkeeping
>> needed for every process). Given your 24GB of RAM, I would think that
>> you're not in an embedded enviroment and such paltry amounts of memory
>> are not a concern!
> Yes, these are dedicated servers. Thanks for the additional info - updating to latest/later versions of rabbitmq is pretty high somewhere on our Todo list :)
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list