我是从 坚强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:
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监视器了。这个我想对于远程监视服务器状态还是不错的。