51Testing软件测试论坛

标题: loadrunner监测linux服务器错误!! [打印本页]

作者: dujun    时间: 2007-11-23 10:33
标题: loadrunner监测linux服务器错误!!
我用loadrunner监测linux服务器资源利用情况,服务器安装并启动了rpc服务。
  第一次监测可以监测到服务器的资源利用情况,为什么再次监测不能监测到服务器的资源利用情况了,有时还会出现如下信息:
  Monitor name :UNIX Resources. Internal rpc error (error code:2). Machine: 210.76.123.12. Hint: Check that RPC on this machine is up and running. Check that rstat daemon on this machine is up and running (use rpcinfo utility for this verification). Details: RPC: RPC call failed

  服务器的rpc是启动的了,我重新启动rpc,依然不能监测到信息,求教高手!谢谢!
作者: windfly1314    时间: 2007-11-27 15:32
对于Linux系统,要想通过LR监控Linux/Unix系统的资源使用情况,需要运行rstatd服务。如果OS没有安装rstatd(可以查找一下系统中是否存在rpc.rstatd这个文件,如果没有,则说明系统没有安装rstatd),则需要进行安装。rstatd安装步骤如下:
  获得rstatd的安装介质(rstatd.tar.gz)。rstatd可以从redhat的安装CD中获得,或者从网站上下载(给出一个下载地址,sourceforge的:http://heanet.dl.sourceforge.net/sourceforge/rstatd)。
  将rstatd.tar.gz拷贝到Linux系统中,解压,赋予可执行权限,进入rpc.rstatd目录,依次执行如下命令:
      #./configure
      #make
      #make install
  结束后,运行./rpc.rstatd命令,启动服务。这个时候,你就可以在LR中监控Linux资源了。
作者: windfly1314    时间: 2007-11-27 15:32
我也是网上找的。你可以试一试。
作者: 青柠檬    时间: 2007-11-27 17:30
你可以用rpcinfo -p命令在UNIX机上查看下RPC是否启动了




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2