打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Loadrunner11监控LINUX服务器

Loadrunner11监控LINUX服务器

1. 首先在Linux服务器上安装rpc.rstatd服务,这里用的是rpc.rstatd-4.0.1.tar.gz安装包,如果没有可以到该网址上去下载http://sourceforge.net/projects/rstatd
2.
执行安装包

 
 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              //安装
 
 3.
修改etc/xinetd.d 目录下的3conf(rlogin,rsh,rexec)文件中的disable设置no
   
cd /etc/xinetd.d   //进入到etc/xinetd.conf目录中
Vi    rlogin //编辑disable=no,保存
Vi    rsh    //编辑disable=no,保存
Vi    rexec //编辑disable=no,保存

4.重新启动xinetd:  /etc/init.d/xinetd restart;
5.
启动rpc.rstatd并查看是否真正启动该服务:
 
rpc.rstatd               //启动rpc.rstatd进程

rpcinfo –p             //执行此命令检查rpc服务的状态
[root@localhostxinetd.d]# rpcinfo -p
   
结果如下:

   

 


   
从上图中可以看出rpc.rstatd服务已经启动

6. 启动LoadRunner并监控Linux系统资源:

   controller中,将Systemresource Graphs中的Unix resources拖到右侧的监控区域中,并单击 

    鼠标右键选择“Add Measurements”,

 
 

在弹出的对话框中输入被监控的linux系统的IP地址,

 
 

然后选择需 要监控的性能指标,并点击确定

监控成功如下图:



 

出现如下错误:
   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 RPC
serveraddress.
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]
   检查原因,发现是Linux系统中的防火墙开启了并且阻挡了LoadRunner监控Linux系统的资源,因此要将防火墙关闭。
7.
关闭防火墙: [root@localhost ~]# /etc/init.d/iptables stop;

8. 重复步骤6,成功 

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
LoadRunner监控Linux资源
loadrunner 场景设计
LoadRunner监视服务器LINUX的方法
LoadRunner监控Linux
LoadRunner监控Linux的三种方法
什么是xinetd?的相关文章推荐 - - JavaEye专栏频道
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服