erlang 开源项目之 Bigwig

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值