[erlang-questions] Process memory usage

Eranga Udesh <>
Tue Apr 8 09:31:53 CEST 2008


Hi,

I need to analyze a process memory usage in detailed. What methods do I
have? What're the reasons for Old Heap to keep on growing?

In my Erl node, when I do,
erlang:process_info(Pid, memory).

I get,
{memory,119096}

But when I do,
erlang:process_info(Pid).

I get,
[{current_function,{gen_fsm,loop,7}},
 {initial_call,{proc_lib,init_p,5}},
 {status,waiting},
 {message_queue_len,0},
 {messages,[]},
 {links,[<5052.19690.1>,<5052.19691.1>,<5052.19692.1>,<5052.16340.1>]},
 {dictionary,[{'$ancestors',[queue5,queue_svr,<5052.476.0>,<5052.475.0>]},
              {'$initial_call',{gen,init_it,
                                    [gen_fsm,
                                     <5052.16340.1>,
                                     <5052.16340.1>,
                                     test_module,
                                     {838,<5052.16340.1>},

[{spawn_opt,[{fullsweep_after,1000}]}]]}}]},
 {trap_exit,true},
 {error_handler,error_handler},
 {priority,normal},
 {group_leader,<5052.474.0>},
 {heap_size,987},
 {stack_size,13},
 {reductions,1219},
 {garbage_collection,[{fullsweep_after,1000}]}]

According to that my heap and stack sizes are very small. How to analyze
what's in memory used by that process? I use Erl R11B-5

Thanks,
- Eranga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080408/c3d64825/attachment.html>


More information about the erlang-questions mailing list