[rabbitmq-discuss] eheap_alloc error

Suhail Doshi suhail at mixpanel.com
Tue Sep 15 17:03:44 BST 2009


Doing some investigation into what happened, apparently the memory just
instantly got used, it wasn't leaking something slowly...any ideas?
Attached is an image of memory usage, then the consumer dies freeing up the
memory used later.

On Tue, Sep 15, 2009 at 8:56 AM, Suhail Doshi <suhail at mixpanel.com> wrote:

> queue's are marked as durable and persistent on both sides:
>
> Producer:
> send_message(Channel, Ticket, X, RoutingKey, Payload) ->
>     BasicPublish = #'basic.publish'{ticket = Ticket,
>                                     exchange = X,
>                                     routing_key = RoutingKey,
>                                     mandatory = false,
>                                     immediate = false},
>     BasicProperties = amqp_util:basic_properties(),
>     Properties = BasicProperties#'P_basic'{delivery_mode=2}, %% Persistence
> plz
>     Content = #content{class_id = 60,
>          properties = Properties,
>          properties_bin = none,
>          payload_fragments_rev = [Payload]
>         },
>     amqp_channel:cast(Channel, BasicPublish, Content).
>
>
> I recently just had my producer crash:
>                                      <<"event">>,false,false})
> Discarding content bearing method ({'basic.publish',1,<<"records">>,
>                                        <<"event">>,false,false})
> Discarding content bearing method ({'basic.publish',1,<<"records">>,
>                                        <<"event">>,false,false})
> Discarding content bearing method ({'basic.publish',1,<<"records">>,
>                                        <<"event">>,false,false})
> Discarding content bearing method ({'basic.publish',1,<<"records">>,
>                                        <<"event">>,false,false})
> Discarding content bearing method ({'basic.publish',1,<<"records">>,
>                                        <<"event">>,false,false})
> Discarding content bearing method ({'basic.publish',1,<<"records">>,
>                                        <<"event">>,false,false})
>
> Crash dump was written to: erl_crash.dump
> eheap_alloc: Cannot allocate 5854930744 bytes of memory (of type
> "heap_frag").
> Aborted
>
>
> Dump:
>
> =erl_crash_dump:0.1
> Tue Sep 15 11:12:02 2009
> Slogan: eheap_alloc: Cannot allocate 5854930744 bytes of memory (of type
> "heap_frag").
> System version: Erlang R13B01 (erts-5.7.2) [source] [64-bit] [smp:4:4]
> [rq:4] [async-threads:0] [hipe] [kernel-poll:false]
> Compiled: Tue Jun 23 19:56:26 2009
> Atoms: 7600
> =memory
> total: 7249076328
> processes: 7195628192
> processes_used: 7195558088
> system: 53448136
> atom: 509577
> atom_used: 496634
> binary: 43489256
> code: 4768046
> ets: 316624
> =hash_table:atom_tab
> size: 4813
> used: 3785
> objs: 7600
> depth: 8
> =index_table:atom_tab
> size: 8192
> limit: 1048576
> entries: 7600
> =hash_table:module_code
> size: 97
> used: 72
> objs: 123
> depth: 5
> =index_table:module_code
> size: 1024
> limit: 65536
> entries: 123
> =hash_table:export_list
> size: 2411
> used: 1798
> objs: 3355
> depth: 8
> =index_table:export_list
>



-- 
http://mixpanel.com
Blog: http://blog.mixpanel.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090915/ecc29a59/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 2.png
Type: image/png
Size: 40630 bytes
Desc: not available
Url : http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090915/ecc29a59/attachment.png 


More information about the rabbitmq-discuss mailing list