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監視器了。這個我想對於遠程監視服務器狀態還是不錯的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM