loadrunner监控linux内存,Loadrunner11监控LINUX服务器
Loadrunner11監(jiān)控LINUX服務(wù)器
2018-11-25
1. 首先在Linux服務(wù)器上安裝rpc.rstatd服務(wù),這里用的是rpc.rstatd-4.0.1.tar.gz安裝包,如果沒有可以到該網(wǎng)址上去下載:http://sourceforge.net/projects/rstatd;
2. 執(zhí)行安裝包
tar -xzvf??rpc.rstatd-4.0.1.tar.gz? ?//解壓rcp.rstatd
cd??rpc.rstatd-4.0.1??? ?? ?? ?//進(jìn)入到rpc.rstatd目錄中
./configure? ?? ???? ?? ?? ?//配置rc.rstatd的安裝,以下我的是按照默認(rèn)方式的
make? ?? ???? ?? ?? ?? ? //編譯rc.rstatd
make install? ?? ???? ?? ?//安裝
3.修改etc/xinetd.d 目錄下的3個(gè)conf(rlogin,rsh,rexec)文件中的disable均設(shè)置為no,
cd /etc/xinetd.d? ?//進(jìn)入到etc/xinetd.conf目錄中
Vi? ? rlogin //編輯disable=no,保存
Vi? ? rsh? ? //編輯disable=no,保存
Vi? ? rexec //編輯disable=no,保存
4.重新啟動(dòng)xinetd:??/etc/init.d/xinetd restart;
5. 啟動(dòng)rpc.rstatd并查看是否真正啟動(dòng)該服務(wù):
rpc.rstatd? ?? ?? ???? ? //啟動(dòng)rpc.rstatd進(jìn)程
rpcinfo –p? ?? ???? ???//執(zhí)行此命令檢查rpc服務(wù)的狀態(tài)
[root@localhostxinetd.d]# rpcinfo -p
結(jié)果如下:
從上圖中可以看出rpc.rstatd服務(wù)已經(jīng)啟動(dòng)
6. 啟動(dòng)LoadRunner并監(jiān)控Linux系統(tǒng)資源:
在controller中,將Systemresource Graphs中的Unix resources拖到右側(cè)的監(jiān)控區(qū)域中,并單擊
鼠標(biāo)右鍵選擇“Add Measurements”,
在彈出的對(duì)話框中輸入被監(jiān)控的linux系統(tǒng)的IP地址,
然后選擇需?要監(jiān)控的性能指標(biāo),并點(diǎn)擊“確定”
監(jiān)控成功如下圖:
出現(xiàn)如下錯(cuò)誤:
Monitor name :UNIX Resources.Cannot initialize the monitoring on 10.10.15.62.
Error while creating the RPC client. Ensure thatthe machine can be connected and that it runs the rstat daemon (use rpcinfoutility for this verification).
Detailed error: RPC: Failed to create RPCclient.
RPC-TCP: Failed to establish RPCserveraddress.
RPC-TCP: Failed to communicate with theportmapper on host "10.10.15.62".
RPC: RPC call failed.
RPC-TCP: recv()/recvfrom() failed.
RPC-TCP: Timeout reached. (entry point:CFactory::Initialize). [MsgId: MMSG-47190]
檢查原因,發(fā)現(xiàn)是Linux系統(tǒng)中的防火墻開啟了并且阻擋了LoadRunner監(jiān)控Linux系統(tǒng)的資源,因此要將防火墻關(guān)閉。
7.關(guān)閉防火墻: [root@localhost ~]# /etc/init.d/iptables stop;
8. 重復(fù)步驟6,成功
免責(zé)聲明:本文僅代表文章作者的個(gè)人觀點(diǎn),與本站無關(guān)。其原創(chuàng)性、真實(shí)性以及文中陳述文字和內(nèi)容未經(jīng)本站證實(shí),對(duì)本文以及其中全部或者部分內(nèi)容文字的真實(shí)性、完整性和原創(chuàng)性本站不作任何保證或承諾,請(qǐng)讀者僅作參考,并自行核實(shí)相關(guān)內(nèi)容。
http://www.pinlue.com/style/images/nopic.gif
總結(jié)
以上是生活随笔為你收集整理的loadrunner监控linux内存,Loadrunner11监控LINUX服务器的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算机网络基础:广域网协议相关知识笔记
- 下一篇: loadrunner11 linux服务