ERLANG的OS_MON應用程序

在ERLANG在線手冊中,凡是看到〔Application〕字樣,均表示爲ERLANG應用程序,其使用方法如下:

 

$ erl -boot start_sasl 

%% 在windows中,如果要修改werl的快捷方式,請輸入:“c:\.....\werl.exe” -boot start_sasl.

 

1> appmon:start().

2> pman:start().

3> etop:start().

 

以上三個命令可任意選擇一個,觀察進程的實時狀態。

 

4> application:start(os_mon).

5> m(memsup).

6> memsup:get_memory_data().

{1064026112,442261504,{<0.48.0>,131780}}

 

含義是:

{Total, Allocated, {Pid_of_largest_Allocated_in_Erlang, Largest_Allocated}}

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章