Erlang CPU 高相关问题的分析方法

vmstat

mpstat-p All

  

1.      Recon

recon

Reconwants to be a set of tools usable in production to diagnose Erlang problems orinspect production environment safely.

Tobuild the library:

rebar3 compile

Documentationfor the library can be obtained at http://ferd.github.io/recon/

It is recommended that you use tags if youdo not want bleeding edge and development content for this library.

 

http://ferd.github.io/recon/

 

2.     Perf -- Linux下的系统性能调优工具

 

3.     Strace

 

 

4.     参考网址:http://www.tuicool.com/articles/qaAveuu

Erlang:查看各个beam中process cpu和内存使用情况.

spawn(fun() ->etop:start([{output, text}, {interval, 5}, {lines, 20}, {sort, memory}]) end).

spawn(fun() -> etop:start([{output, text}, {interval, 5}, {lines, 20},{sort, runtime}]) end).

etop:stop().

spawn(fun() ->etop:start([{output, text}, {interval, 5}, {lines, 20}, {sort, runtime},{tracing, on}]) end).

spawn(fun() -> etop:start([{output, text}, {interval, 5}, {lines, 20},{ accumulate,true },{sort,runtime}, {tracing, on}]) end).

 

accumulate,true

tracing=off

 

etop:stop().

 


你可能感兴趣的:(Erlang)