免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3063 | 回复: 3

[函数] etop 【erlang】cpu memory [复制链接]

论坛徽章:
27
水瓶座
日期:2014-08-22 21:06:34程序设计版块每日发帖之星
日期:2015-11-25 06:20:0015-16赛季CBA联赛之新疆
日期:2015-12-19 19:05:48IT运维版块每日发帖之星
日期:2015-12-25 06:20:31IT运维版块每日发帖之星
日期:2015-12-25 06:20:31IT运维版块每日发帖之星
日期:2015-12-25 06:20:3315-16赛季CBA联赛之上海
日期:2016-04-15 19:51:31程序设计版块每日发帖之星
日期:2016-04-17 06:23:29程序设计版块每日发帖之星
日期:2016-04-23 06:20:00程序设计版块每日发帖之星
日期:2016-05-26 06:20:00每日论坛发贴之星
日期:2016-05-26 06:20:0015-16赛季CBA联赛之辽宁
日期:2017-02-16 23:59:47
发表于 2015-06-13 12:56 |显示全部楼层

========================================================================================
nonode@nohost                                                             04:56:22
Load:  cpu         0               Memory:  total       14561    binary         58
        procs      56                        processes    4645    code         6603
        runq        0                        atom          258    ets           358
   
Pid            Name or Initial Func    Time    Reds  Memory    MsgQ Current Function
----------------------------------------------------------------------------------------
<0.7.0>        application_controll     '-'       0  426512       0 gen_server:loop/6   
<0.24.0>       user                     '-'       0  142760       0 group:server_loop/3
<0.19.0>       code_server              '-'       0  142680       0 code_server:loop/1  
<0.26.0>       erlang:apply/2           '-'       0  109352       0 shell:get_command1/5
<0.3.0>        erl_prim_loader          '-'       0  101224       0 erl_prim_loader:loop
<0.25.0>       group:server/3           '-'    9661   67912       0 group:more_data/5   
<0.65.0>       erlang:apply/2           '-'       0   67696       0 dbg:recv_all_traces/
<0.72.0>       erlang:apply/2           '-'       0   42112       0 shell:eval_loop/3   
<0.93.0>       etop_txt:init/1          '-'    3900   34248       0 etop:update/1      
<0.37.0>       mnesia_monitor           '-'       0   29424       0 gen_server:loop/6   
<0.0.0>        init                     '-'       0   24512       0 init:loop/1         
<0.11.0>       kernel_sup               '-'       0   17032       0 gen_server:loop/6   
<0.23.0>       user_drv                 '-'    4495   16712       0 user_drv:server_loop
<0.6.0>        error_logger             '-'       0   16672       0 gen_event:fetch_msg/
<0.41.0>       mnesia_tm                '-'       0   16632       0 mnesia_tm:doit_loop/
<0.45.0>       mnesia_late_loader       '-'       0   13616       0 mnesia_late_loader:l
<0.18.0>       file_server_2            '-'       0   10640       0 gen_server:loop/6   
<0.92.0>       etop_server              '-'       0    8624       0 etop:data_handler/2
<0.36.0>       mnesia_kernel_sup        '-'       0    7216       0 gen_server:loop/6   
<0.54.0>       inets_sup                '-'       0    7016       0 gen_server:loop/6   
========================================================================================
   
   
========================================================================================
nonode@nohost                                                             04:56:32
Load:  cpu         0               Memory:  total       14548    binary         58
        procs      56                        processes    4661    code         6603
        runq        0                        atom          258    ets           358
   
Pid            Name or Initial Func    Time    Reds  Memory    MsgQ Current Function
----------------------------------------------------------------------------------------
<0.7.0>        application_controll     '-'       0  426512       0 gen_server:loop/6   
<0.24.0>       user                     '-'       0  142760       0 group:server_loop/3
<0.19.0>       code_server              '-'       0  142680       0 code_server:loop/1  
<0.26.0>       erlang:apply/2           '-'       0  109352       0 shell:get_command1/5
<0.3.0>        erl_prim_loader          '-'       0  101224       0 erl_prim_loader:loop
<0.65.0>       erlang:apply/2           '-'       0   67696       0 dbg:recv_all_traces/
<0.25.0>       group:server/3           '-'    9490   55120       0 group:more_data/5   
<0.72.0>       erlang:apply/2           '-'       0   42112       0 shell:eval_loop/3   
<0.37.0>       mnesia_monitor           '-'       0   29424       0 gen_server:loop/6   
<0.93.0>       etop_txt:init/1          '-'    4032   26344       0 etop:update/1      
<0.0.0>        init                     '-'       0   24512       0 init:loop/1         
<0.11.0>       kernel_sup               '-'       0   17032       0 gen_server:loop/6   
<0.23.0>       user_drv                 '-'    4498   16712       0 user_drv:server_loop
<0.6.0>        error_logger             '-'       0   16672       0 gen_event:fetch_msg/
<0.41.0>       mnesia_tm                '-'       0   16632       0 mnesia_tm:doit_loop/
<0.45.0>       mnesia_late_loader       '-'       0   13616       0 mnesia_late_loader:l
<0.18.0>       file_server_2            '-'       0   10640       0 gen_server:loop/6   
<0.92.0>       etop_server              '-'       0    8624       0 etop:data_handler/2
<0.36.0>       mnesia_kernel_sup        '-'       0    7216       0 gen_server:loop/6   
<0.54.0>       inets_sup                '-'       0    7016       0 gen_server:loop/6   
========================================================================================
   
9>

论坛徽章:
27
水瓶座
日期:2014-08-22 21:06:34程序设计版块每日发帖之星
日期:2015-11-25 06:20:0015-16赛季CBA联赛之新疆
日期:2015-12-19 19:05:48IT运维版块每日发帖之星
日期:2015-12-25 06:20:31IT运维版块每日发帖之星
日期:2015-12-25 06:20:31IT运维版块每日发帖之星
日期:2015-12-25 06:20:3315-16赛季CBA联赛之上海
日期:2016-04-15 19:51:31程序设计版块每日发帖之星
日期:2016-04-17 06:23:29程序设计版块每日发帖之星
日期:2016-04-23 06:20:00程序设计版块每日发帖之星
日期:2016-05-26 06:20:00每日论坛发贴之星
日期:2016-05-26 06:20:0015-16赛季CBA联赛之辽宁
日期:2017-02-16 23:59:47
发表于 2015-06-13 12:57 |显示全部楼层
9> etop:stop().                                                                                 
stop
10> spawn(fun() -> etop:start([{output, text}, {interval, 10}, {lines, 20}, {sort, memory}]) end).

论坛徽章:
27
水瓶座
日期:2014-08-22 21:06:34程序设计版块每日发帖之星
日期:2015-11-25 06:20:0015-16赛季CBA联赛之新疆
日期:2015-12-19 19:05:48IT运维版块每日发帖之星
日期:2015-12-25 06:20:31IT运维版块每日发帖之星
日期:2015-12-25 06:20:31IT运维版块每日发帖之星
日期:2015-12-25 06:20:3315-16赛季CBA联赛之上海
日期:2016-04-15 19:51:31程序设计版块每日发帖之星
日期:2016-04-17 06:23:29程序设计版块每日发帖之星
日期:2016-04-23 06:20:00程序设计版块每日发帖之星
日期:2016-05-26 06:20:00每日论坛发贴之星
日期:2016-05-26 06:20:0015-16赛季CBA联赛之辽宁
日期:2017-02-16 23:59:47
发表于 2015-06-13 12:58 |显示全部楼层
spawn(fun() -> etop:start([{output, text}, {interval, 10}, {lines, 20}, {sort, msg_q}]) end).

论坛徽章:
27
水瓶座
日期:2014-08-22 21:06:34程序设计版块每日发帖之星
日期:2015-11-25 06:20:0015-16赛季CBA联赛之新疆
日期:2015-12-19 19:05:48IT运维版块每日发帖之星
日期:2015-12-25 06:20:31IT运维版块每日发帖之星
日期:2015-12-25 06:20:31IT运维版块每日发帖之星
日期:2015-12-25 06:20:3315-16赛季CBA联赛之上海
日期:2016-04-15 19:51:31程序设计版块每日发帖之星
日期:2016-04-17 06:23:29程序设计版块每日发帖之星
日期:2016-04-23 06:20:00程序设计版块每日发帖之星
日期:2016-05-26 06:20:00每日论坛发贴之星
日期:2016-05-26 06:20:0015-16赛季CBA联赛之辽宁
日期:2017-02-16 23:59:47
发表于 2015-06-13 12:59 |显示全部楼层
本帖最后由 shijiang1130 于 2015-06-13 12:59 编辑

The following configuration parameters exist for the etop tool. When executing the etop script, these parameters can be given as command line options, e.g. etop -node testnode@myhost -setcookie MyCookie.

node
The measured node.
Value: atom()
Mandatory
setcookie
Cookie to use for the etop node - must be the same as the cookie on the measured node.
Value: atom()
lines
Number of lines (processes) to display.
Value: integer()
Default: 10
interval
The time interval (in seconds) between each update of the display.
Value: integer()
Default: 5
accumulate
If true the execution time and reductions are accumulated.
Value: boolean()
Default: false
sort
Identifies what information to sort by.
Value: runtime | reductions | memory | msg_q
Default: runtime (reductions if tracing=off)
tracing
etop uses the erlang trace facility, and thus no other tracing is possible on the measured node while etop is running, unless this option is set to off. Also helpful if the etop tracing causes too high load on the measured node. With tracing off, runtime is not measured.
Value: on | off
Default: on
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP