Unfortunately, the system has crashed since the last outputs I provided, but the behavior remains. There definitely seems to be some memory held up in the persister, but I dont think this is the main source. Below, I printed out the memory for the process, gc'd it, then printed it again:<br>
<br>1> process_info(whereis(rabbit_persister)).<br>[{registered_name,rabbit_persister},<br>�{current_function,{gen_server2,process_next_msg,8}},<br>�{initial_call,{proc_lib,init_p,5}},<br>�{status,waiting},<br>�{message_queue_len,0},<br>
�{messages,[]},<br>�{links,[<0.76.0>,<0.188.0>]},<br>�{dictionary,[{'$ancestors',[rabbit_sup,<0.75.0>]},<br>������������� {'$initial_call',{rabbit_persister,init,1}}]},<br>�{trap_exit,true},<br>
�{error_handler,error_handler},<br>�{priority,normal},<br>�{group_leader,<0.74.0>},<br>�{total_heap_size,43398670},<br>�{heap_size,5135590},<br>�{stack_size,13},<br>�{reductions,128289510},<br>�{garbage_collection,[{fullsweep_after,65535},<br>
��������������������� {minor_gcs,49}]},<br>�{suspending,[]}]<br>2> garbage_collect(whereis(rabbit_persister)).<br>true<br>3> process_info(whereis(rabbit_persister)).�� <br>[{registered_name,rabbit_persister},<br>�{current_function,{gen_server2,process_next_msg,8}},<br>
�{initial_call,{proc_lib,init_p,5}},<br>�{status,waiting},<br>�{message_queue_len,0},<br>�{messages,[]},<br>�{links,[<0.76.0>,<0.188.0>]},<br>�{dictionary,[{'$ancestors',[rabbit_sup,<0.75.0>]},<br>
������������� {'$initial_call',{rabbit_persister,init,1}}]},<br>�{trap_exit,true},<br>�{error_handler,error_handler},<br>�{priority,normal},<br>�{group_leader,<0.74.0>},<br>�{total_heap_size,987},<br>�{heap_size,610},<br>
�{stack_size,13},<br>�{reductions,133572480},<br>�{garbage_collection,[{fullsweep_after,65535},{minor_gcs,6}]},<br>�{suspending,[]}]<br><br>So, even the though this collected quite a bit of memory, we can see that the binary allocation is still large:<br>
<br>4> memory().<br>[{total,906056008},<br>�{processes,72681252},<br>�{processes_used,72668564},<br>�{system,833374756},<br>�{atom,515733},<br>�{atom_used,490081},<br>�{binary,769103232},<br>�{code,3890441},<br>�{ets,58694668}]<br>
<br>Is there a way I can print the allocators for this binary memory?<br><br>-Stephen<br>