我是從 堅強2002 Erlang Web 監控工具 知道這個工具的,用百度搜索時,還真沒發現別人提到這個工具,從他的博客里確實能學到好多東西,大家有空去看看。
下面是官方的介紹:
Bigwig is a suite of web-based tools for the Erlang VM, like webtool.
Tools that we currently include custom versions of:
- "etop" - see which processes are using the most cpu/heap/reds/etc
- "rb" - browse SASL reports
- "appmon" - explore application supervision hierarchies
Also included is a VM dashboard with release_handler details, loaded applications, and VM settings.
Conceived for Spawnfest 2011, SMELLS LIKE BEAM SPIRIT.
項目地址:
https://github.com/beamspirit/bigwig
下載,編譯,啟動
cd ~/Source
git clone https://github.com/beamspirit/bigwig.git
這個項目也是使用 rebar 構建的,看來rebar在開源項目里用的還真是不少。
獲取依賴項
./rebar get-deps
編譯,並啟動.
./start-dev.sh
注意:我Erlang版本是 R15,所以需要修改 rebar.config
{require_otp_vsn, "R15"}.
啟動時,我遇到一個錯誤,{error,{not_started,jsx}}
多謝堅強2002提醒,手動啟動依賴項,
這里,我修改 bigwig.erl start 方法,增加一行啟動 jsx app的代碼,如下:
start() ->
ensure_started(crypto),
ensure_started(sasl),
ensure_started(cowboy),
ensure_started(jsx),
application:start(bigwig).
重新
,成功。./start-dev.sh
administrator@ubuntu:~/Source/bigwig$ ./start-dev.sh
==> cowboy (compile)
==> jsx (compile)
==> bigwig (compile)
Compiled src/bigwig.erl
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9.1 (abort with ^G)
(bigwig@ubuntu)1>
=INFO REPORT==== 9-May-2012::10:42:02 ===
Bigwig listening on http://127.0.0.1:40829/
Reloading bigwig ... ok.
接下來在瀏覽器訪問 http://127.0.0.1:40829/ 就可以看到Web監視器了。這個我想對於遠程監視服務器狀態還是不錯的。