[原創]LoadRunner如何監控Linux系統資源

來源:互聯網
上載者:User
[原創]LoadRunner如何監控Linux系統資源

 

一 簡述:LoadRunner監控Linux資源時彈出如下錯誤:

Monitor name :UNIX Resources. Cannot initialize the monitoring on 192.168.52.189. Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification). Detailed error: RPC: Failed to create RPC client.

RPC-TCP: Failed to establish RPC server address.

上述問題的實質是Linux系統中未安裝rpc.rstatd,服務未開啟的原因造成。

於是接下來就驗證我們的推測:

首先查看rpc.rstatd是否安裝

[root@localhost bin]# whereis rpc.rstatd

發現系統未安裝rpc.rstatd

備忘:rstatd Rstat協議允許網路上的使用者獲得同一網路上各機器的績效參數。

二 準備下載包:下載rpc.rstatd-4.0.1.tar.gz安裝包

:http://sourceforge.net/projects/rstatd

利用ssh用戶端上傳rpc.rstatd-4.0.1.tar.gz包至Linux下/home/Michael/tool/目錄下
三 執行安裝程式包:

    tar -xzvf  rpc.rstatd-4.0.1.tar.gz   //解壓rcp.rstatd

cd  rpc.rstatd-4.0.1            //進入到rpc.rstatd目錄中

./configure                  //配置rc.rstatd的安裝,以下我的是按照預設的            

make                      //編譯rc.rstatd  

make install               // 安裝

四 重啟xinetd

   /etc/init.d/xinetd restart

五 修改etc/xinetd.d目錄下面的3個conf (rlogin, rsh, rexec)中的disable置均設定為no

cd /etc/xinetd.d   //進入到etc/xinetd.conf目錄中 

Vi    rlogin //編輯disable=no,儲存

Vi    rsh    // 編輯disable=no,儲存

Vi    rexec //編輯disable=no,儲存

六 啟動rpc.rstatd和檢測

rpc.rstatd                //啟動rpc.rstatd進程

rpcinfo –p              // 執行此命令檢查rpc服務的狀態

   [root@localhost xinetd.d]# rpcinfo -p
    程式版本協議   連接埠
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  32768  status
    100024    1   tcp  32769  status
    100001    5   udp    867  rstatd
    100001    3   udp    867  rstatd
    100001    2   udp    867  rstatd
    100001    1   udp    867  rstatd

   七 利用Loadunner中的Controller監控Linux資源
1  在controller中,將Systeme Resourece Graphs中的UNIX resources拖到右鍵的資源監控地區
2  滑鼠右鍵選擇Add Measurements,添加被監控linux的IP地址192.168.52.189,選擇需監控的效能指標,確認後,如所示即表示成功^_^

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.