[rabbitmq-discuss] Memory leak with file_io_server,server_loop?

Travis hcoyote at ghostar.org
Mon Nov 5 23:38:52 GMT 2012


Not sure if we've found another memory leak or not.  We're running
2.8.6 and experiencing periods where we're triggering the
vm_memory_highwater_mark.  I've had to restart rabbitmq twice today
because of this.

I've attempted to force a gc, but it doesn't seem to affect the memory
usage appreciably.

Travis


[tcampbell at host ~]$ sudo  rabbitmqctl eval
'lists:sublist(lists:reverse(lists:sort([{process_info(Pid, memory),
Pid, process_info(Pid)} || Pid <- processes()])), 1).'
[sudo] password for tcampbell:
[{{memory,502012488},
  <4830.34.0>,
  [{current_function,{file_io_server,server_loop,1}},
   {initial_call,{erlang,apply,2}},
   {status,waiting},
   {message_queue_len,0},
   {messages,[]},
   {links,[<4830.24.0>,#Port<4830.595>]},
   {dictionary,[]},
   {trap_exit,false},
   {error_handler,error_handler},
   {priority,normal},
   {group_leader,<4830.9.0>},
   {total_heap_size,62751455},
   {heap_size,38263080},
   {stack_size,3},
   {reductions,30221193},
   {garbage_collection,[{min_bin_vheap_size,46368},
                        {min_heap_size,233},
                        {fullsweep_after,65535},
                        {minor_gcs,1}]},
   {suspending,[]}]}]
...done.
[tcampbell at host ~]$ sudo service rabbitmq-server restart
Restarting rabbitmq-server: SUCCESS
rabbitmq-server.
[tcampbell at host ~]$ sudo  rabbitmqctl eval
'lists:sublist(lists:reverse(lists:sort([{process_info(Pid, memory),
Pid, process_info(Pid)} || Pid <- processes()])), 1).'
[{{memory,971920},
  <4830.97.0>,
  [{current_function,{application_master,loop_it,4}},
   {initial_call,{application_master,start_it,4}},
   {status,waiting},
   {message_queue_len,0},
   {messages,[]},
   {links,[<4830.96.0>,<4830.131.0>]},
   {dictionary,[]},
   {trap_exit,true},
   {error_handler,error_handler},
   {priority,normal},
   {group_leader,<4830.96.0>},
   {total_heap_size,121393},
   {heap_size,121393},
   {stack_size,5},
   {reductions,80460},
   {garbage_collection,[{min_bin_vheap_size,46368},
                        {min_heap_size,233},
                        {fullsweep_after,65535},
                        {minor_gcs,0}]},
   {suspending,[]}]}]
...done.

-- 
Travis Campbell
travis at ghostar.org


More information about the rabbitmq-discuss mailing list