合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
http://erlang.org/doc/apps/observer/etop_ug.html 平时用的最多的可能就是etop,两种用法: [1] 在/usr/local/lib/erlang/lib/observer-1.0/priv/bin目录下面(视安装情况而异)执行: 找出cpu占用最高的进程,图形界面输出,每10秒更新一次 > spawn(fun() -> etop:start([{interval,10}, {sort, runtime}]) end). > etop:stop() 找出内存占用较高进程, 输出进程的数量为20,文本形式输出 > spawn(fun() -> etop:start([{output, text}, {lines, 20}, {sort, memory}]) end). > etop:stop(). > spawn(fun() -> etop:start([{output, text}, {interval, 20}, {lines, 20}, {sort, memory}]) end).