【转】[原创]LoadRunner如何监控Linux系统资源
[原創]LoadRunner如何監控Linux系統資源
http://www.cnblogs.com/mayingbao/archive/2006/06/19/429187.html
一簡述:LoadRunner監控Linux資源時彈出如下錯誤:
Monitorname:UNIXResources.Cannotinitializethemonitoringon192.168.52.189.ErrorwhilecreatingtheRPCclient.Ensurethatthemachinecanbeconnectedandthatitrunstherstatdaemon(userpcinfoutilityforthisverification).Detailederror:RPC:FailedtocreateRPCclient.
RPC-TCP:FailedtoestablishRPCserveraddress.
上述問題的實質是Linux系統中未安裝rpc.rstatd,服務未開啟的原因造成。
于是接下來就驗證我們的推測:
首先查看rpc.rstatd是否安裝
[root@localhostbin]#whereisrpc.rstatd
發現系統未安裝rpc.rstatd
備注:rstatdRstat協議允許網絡上的用戶獲得同一網絡上各機器的性能參數。
二準備下載包:下載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-xzvfrpc.rstatd-4.0.1.tar.gz//解壓rcp.rstatd
cdrpc.rstatd-4.0.1//進入到rpc.rstatd目錄中
./configure//配置rc.rstatd的安裝,以下我的是按照默認方式的
make//編譯rc.rstatd
makeinstall//安裝
四重啟xinetd
/etc/init.d/xinetdrestart
五修改etc/xinetd.d目錄下面的3個conf(rlogin,rsh,rexec)中的disable置均設置為no
cd/etc/xinetd.d//進入到etc/xinetd.conf目錄中
Virlogin//編輯disable=no,保存
Virsh//編輯disable=no,保存
Virexec//編輯disable=no,保存
六啟動rpc.rstatd和檢測
rpc.rstatd//啟動rpc.rstatd進程
rpcinfo–p//執行此命令檢查rpc服務的狀態
[root@localhostxinetd.d]#rpcinfo-p
程序版本協議端口
1000002tcp111portmapper
1000002udp111portmapper
1000241udp32768status
1000241tcp32769status
1000015udp867rstatd
1000013udp867rstatd
1000012udp867rstatd
1000011udp867rstatd
七利用Loadunner中的Controller監控Linux資源
1在controller中,將SystemeResoureceGraphs中的UNIXresources拖到右鍵的資源監控區域
2鼠標右鍵選擇AddMeasurements,添加被監控linux的IP地址192.168.52.189,選擇需監控的性能指標,確認后,如下圖所示即表示成功^_^
轉載于:https://blog.51cto.com/richmond/1312530
總結
以上是生活随笔為你收集整理的【转】[原创]LoadRunner如何监控Linux系统资源的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: rhel5 给grub 加密,亲测!
- 下一篇: 老罗的情怀“被”与廉价划等号 锤子“被”