[rabbitmq-discuss] Fwd: RabbitMQ error

Matthias Radestock matthias at lshift.net
Mon May 5 14:38:24 BST 2008


Michael,

Michael Arnoldus wrote:
> Anyway, the result is "too many processes".

A brute force way of checking on the currently running processes is

file:write_file("/tmp/processes.erl", io_lib:format("~p", 
[[process_info(P) || P <- processes()]])).

Warning: this may include some message content and security credentials.

> So is there any way to ask RabbitMQ for the amount of connections? 
> Channels? 

Not easily. It's on our todo list.

Connects/disconnects are recorded in rabbit.log, so with some log 
analysis you should be able to get an idea on the current connection 
count. Plus of course there's the 'netstat' OS command.

> Will rabbit create a new process for each connection? Channel?

RabbitMQ creates about half a dozen processes per connection, and four 
processes per channel.

> Any other suggestions on whats happening here?

Connections, channels and queues are the only entities performing 
dynamic process creation, except for the various places that spawn 
short-lived helper processes.

Are you sure that you haven't got stale queues lying around? I am asking 
because of the mnesia errors you are seeing - connection and channel 
creation does not result in mnesia writes, but queue creation does.


Matthias.




More information about the rabbitmq-discuss mailing list