[erlang-questions] profiling application

jm <>
Sat Mar 17 01:43:31 CET 2007


Dominic Williams wrote:
> Hi Jeff,
> 
>> erl -sname etop -s etop -output text -lines 33 -node 
> 
> Have you tried running the ./priv/bin/etop program (in the observer
> application of the erlang distribution) ?
> 
> Regards,
> 
> Dominic Williams
> http://www.dominicwilliams.net
> ----
> 
Mmmm, seems to be a script with almost the same as the options as I
previously used. Must be some difference in the options though
(-hidden?). Here's the output of etop after a few minutes. As you can
see the process zu_server has 16233 messages in it queue and the memory
usage has blown out. What is the function gen:wait_resp_mon/3? Would I
be right in guessing it's the other half of gen:call? If so how do I
tell which call it's waiting on?


Jeff.

Output of etop
========================================================================================
 
   23:29:05
 Load:  cpu        46               Memory:  total      110040    binary
       535
        procs      63                        processes  102383    code
       2911
        runq        3                        atom          341    ets
       3360

Pid            Name or Initial Func    Time    Reds  Memory    MsgQ
Current Function
----------------------------------------------------------------------------------------
<4249.173.0>   zu_server            2246814   11425********   16233
gen:wait_resp_mon/3
<4249.172.0>   zonedb                425912  961486    3984       0
gen_server:loop/6
<4249.46.0>    mnesia_locker         189394    8075    2292       0
mnesia_locker:loop/1
<4249.48.0>    mnesia_tm             187822    7030   13204       0
mnesia_tm:doit_loop/




More information about the erlang-questions mailing list