[rabbitmq-discuss] How to debug queue memory leak

Max Kuznecov mek at mek.uz.ua
Mon Jan 28 22:43:51 GMT 2013


Here's again my data:

rabbitmqctl report: http://pastebin.com/Qj5m2kjY

rabbitmqctl eval
'process_info(rabbit_misc:string_to_pid("<rabbit at sps.3.3412.3>")).':

[{current_function,{gen_server2,process_next_msg,1}},
 {initial_call,{proc_lib,init_p,5}},
 {status,waiting},
 {message_queue_len,0},
 {messages,[]},
 {links,[#Port<5267.151951>,<5267.216.0>]},
 {dictionary,[{fhc_age_tree,{1,
                             {{1359,412427,139619},
                              #Ref<5267.0.145.241905>,nil,nil}}},
              {{xtype_to_module,direct},rabbit_exchange_type_direct},
              {{credit_to,<5267.3349.3>},37},
              {{"/var/lib/rabbitmq/mnesia/rabbit at sps/queues/CETWHIRGIYJIN4QVAPTOYM3TM/journal.jif",
                fhc_file},
               {file,1,true}},
              {{#Ref<5267.0.145.241905>,fhc_handle},
               {handle,{file_descriptor,prim_file,{#Port<5267.151951>,65}},
                       3333456,false,0,infinity,[],true,

"/var/lib/rabbitmq/mnesia/rabbit at sps/queues/CETWHIRGIYJIN4QVAPTOYM3TM/journal.jif",
                       [write,binary,raw,read],
                       [{write_buffer,infinity}],
                       true,true,
                       {1359,412427,139619}}},
              {'$ancestors',[rabbit_amqqueue_sup,rabbit_sup,<5267.155.0>]},
              {{credit_from,<5267.210.0>},1519},
              {{credit_to,<5267.3365.3>},32},
              {guid,{{269445283,67762708,3568719908,1494013915},1}},
              {'$initial_call',{gen,init_it,6}}]},
 {trap_exit,true},
 {error_handler,error_handler},
 {priority,normal},
 {group_leader,<5267.154.0>},
 {total_heap_size,2103540},
 {heap_size,2103540},
{stack_size,7},
 {reductions,403100490},
 {garbage_collection,[{min_bin_vheap_size,46368},
                      {min_heap_size,233},
                      {fullsweep_after,65535},
                      {minor_gcs,0}]},
 {suspending,[]}]

rabbitmqctl eval
'sys:get_status(rabbit_misc:string_to_pid("<rabbit at sps.3.3412.3>")).
output is huge - 15 megabyte!
I've compressed it - http://dl.dropbox.com/u/22762166/report2.bz2

P.S. I'm posting the messages to the list as well, but then I get auto
reply - "message is pending for approval" or something like that.

2013/1/29 Matthias Radestock <matthias at rabbitmq.com>:
> On 28/01/13 10:43, Matthias Radestock wrote:
>>
>> Btw, it appears that your previous message didn't make it to the mailing
>> list. Would you mind re-sending it?
>
>
> Please do that; the process_info output it shows is quite important.
>
> I think I have some idea of what's going on. To help me analyse this
> further, please also post the output of
>
> rabbitmqctl eval 'sys:get_status(rabbit_misc:string_to_pid("<ThePid>")).'
>
> for the pid of the queue we've been looking at.
>
>
> Regards,
>
> Matthias.



-- 
~syhpoon


More information about the rabbitmq-discuss mailing list