[rabbitmq-discuss] Fwd: RabbitMQ error
    Matthias Radestock 
    matthias at lshift.net
       
    Mon May  5 18:03:40 BST 2008
    
    
  
Matthias Radestock wrote:
> Michael Arnoldus wrote:
>> So is there any way to ask RabbitMQ for the amount of connections? 
>> Channels? 
> 
> Not easily. It's on our todo list.
Actually, it's not that hard. In the shell define
F = fun (X) -> length([P || P <- processes(), case process_info(P, 
current_function) of {current_function, {X, _, _}} -> true; _ -> false 
end]) end.
and then call it like this:
F(rabbit_reader). %% number of connections
F(rabbit_framing_channel). %% number of channels
Matthias.
    
    
More information about the rabbitmq-discuss
mailing list