[rabbitmq-discuss] rabbitmq-server crashes hard while consuming 31GB of RAM

Simon MacMullen simon at rabbitmq.com
Thu Nov 24 16:23:14 GMT 2011


On 24/11/11 14:25, Muharem Hrnjadovic wrote:
> On 11/23/2011 05:40 PM, Simon MacMullen wrote:
>> On 23/11/11 15:05, Muharem Hrnjadovic wrote:
> [..]
>> 3b) Can you run:
>>
>> su rabbitmq -s /bin/sh -c 'erl -remsh rabbit@`hostname -s` -sname foo -eval "io:format(\"~p\", [lists:sublist(lists:reverse(lists:sort([{process_info(Pid, memory), Pid, process_info(Pid)} || Pid<- processes()])), 30)]), halt()."'
> Hello Simon,
>
> I "tested" your command above, please see: http://paste.ubuntu.com/748229/
> There are a number of "File operation error:.." entries in there. Is
> that something you expected to see?

They should be harmless - I expect you ran that from a cwd that the 
rabbitmq user could not read. You could "cd /var/lib/rabbitmq" first to 
shut it up.

However, I realise now that the above command does not work: -eval and 
-remsh do not work together so it's reporting on the Erlang processes in 
the shell, not RabbitMQ. Please try:

su rabbitmq -s /bin/sh -c "erl -sname foo -eval 
\"rpc:call(rabbit@`hostname -s`, erlang, apply, [fun() -> 
io:format(\\\"~p\\\", 
[lists:sublist(lists:reverse(lists:sort([{process_info(Pid, memory), 
Pid, process_info(Pid)} || Pid <- processes()])), 30)]) end, []]), 
halt().\""

...instead, and try to ignore the fact that it looks like the result of 
an obfuscation contest.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list