http://www.ltesting.net/ceshi/ceshijishu/rjcsgj/mercury/loadrunner/2013/0418/206165_3.html

---------------------------------------------------------------------------

1, Unix Resource Monitor:

  • Setting up the Monitoring Environment
    Ensure that the rstatd daemon is running on the UNIX machine

首先 , 监视 Linux 一定要有 rstatd daemon 这个进程 , 有的 Linux 版本里也有可能是 rpc.rstatd 这里只是名字不同而已 , 功能是一样的。一般来说 LINUX 需要下载一个包才有这个服务 , 包名字是 rpc.rstatd-4.0.1.tar.gz. 这是一个源码 , 需要编译 . 下载并安装 rstatd

  • To verity whether the rstatd daemon is already configured:

The rup command reports various machine statistics, including rstatd configuration. Run the following command to view the machine statistics: >rup host

You can also use lr_host_monitor and see if it returns any relevant statistics.

If the command returns meaningful statistics, the rstatd daemon is already configured and activated. If not, or if you receive an error message, the rstatd daemon is not configured.

  • To configure the rstatd daemon:

Run the command: su root

Go to /etc/inetd. conf and look for the rstatd row (it begins with the word rstatd). If it is commented out (with a #), remove the comment directive, and save the file.

From the command line, run: kill -1 inet_pid .

where inet_pid is the pid of the inetd process. This instructs the inetd to rescan the /etc/inetd.conf file and register all daemons which are uncommented, including the rstatd daemon.

Run rup again.

If the command still does not indicate that the rstatd daemon is configured, contact your system administrator.

  • To monitor a UNIX machine through a firewall, you must run a UNIX utility called rpcinfo and identify the rstatd ’ s port number. By running rpcinfo -p , you will receive a list of all RPC servers registered in the host ’ s portmapper, along with the port number. This list will not change until rstatd is stopped and rerun.

    Some firewalls allow you to open an RPC program number instead of a port.In such cases, open program 100001.

2, WebsPhere Monitor

  • Ensure that the PerfServletAPP.ear is running on the WAS server
  • Setting from Websphere Admin Console

Go to Servers > Application servers > Your server > Performance > Performance Monitoring Infrastructure (PMI)
make sure Currently monitored statistic set is set to the level higher than None (Basic is ok)

3, Apache monitor for  Web Server
  • Open <Apache Installation>\conf\ httpd.conf , Make the following changes :

Configure the host which show the status of Apache
      #
      # Allow server status reports, with the URL of   http://servername/server-status
      # Change the ".your-domain.com" to match your domain to   enable.
      #
      Delete the annotation symbol “#” which in front of these code ,and set the order to allow priority
      <Location /server-status>
       SetHandler server-status
       Order allow,deny
       Deny from nothing
       Allow from all
      </Location>

  • Restart   Apache server after these changes, in the browser enter http://servername/server-status   be able to see Apache run-time information. Then input http://servername/server-status?auto   will see the following information: (http://123unix.cnblogs.com/server-status?auto)

Total   Accesses: 124
  Total Kbytes: 444
     CPULoad: 3.32432
     Uptime: 37
  ReqPerSec: 3.35135
     BytesPerSec: 12288
      BytesPerReq: 3666.58
      BusyWorkers: 1
      IdleWorkers: 7
      Scoreboard: ____W___.........................
    To see such information, the configuration is successful , so that you   can monitor Apache in Loadrunner

4, Oracle Monitor

The Oracle monitor displays information from Oracle V$ tables: Session statistics, V$SESSTAT, system statistics, V$SYSSTAT, and other table counters defined by the user in the custom query.

  • To set up the Oracle monitor environment:

  1).Ensure that the Oracle client libraries are installed on the Controller or Tuning Console machine

2).Verify that %OracleHome%\bin is included in the path environment variable. If it is not, add it.

3).Configure the tnsnames.ora file on the Controller machine

4).Obtain a username and password for the service from your database administrator

5). Ensure that the schema user has been granted read access on V$ tables (V$SESSTAT, V$SYSSTAT, V$STATNAME, V$INSTANCE, V$SESSION, V$PROCESS).

6).Verify connection with the Oracle server by performing tns ping from the Controller

7).Ensure that the registries are updated for the version of Oracle that you are using and that they have the following key: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

8).Run SQL*Plus from the Controller or Tuning Console and attempt to log in to the Oracle server(s) with the desired username/password/server combination.

9).Type SELECT * FROM V$SYSSTAT to verify that you can view the V$SYSSTAT table on the Oracle server. Use similar queries to verify that you can view the V$SESSTAT, V$SESSION, V$INSTANCE, V$STATNAME, and V$PROCESS tables on the server. Make sure that the Oracle bin directory is in the search path.

 

LoadRunner系统资源监视的更多相关文章

  1. LoadRunner培训初级教程

    一 LoadRunner简介 1.1 Loadrunner介绍 LoadRunner 是 HP Mercury Interactive 用来测试应用程序性能的工具  LoadRunner 通过模拟一个 ...

  2. LoadRunner监控Linux

    rstat协议允许网络上的用户获得同一网络上各机器的性能参数. 需要下载3个包:    (1)rsh-0.17-14.i386.rpm     (2)rsh-server-0.17-14.i386.r ...

  3. 关于LR监视Windows和linux的说明

    一.监控windows系统: 1.监视连接前的准备工作 1)进入被监视windows系统,开启以下二个服务Remote Procedure Call(RPC) 和Remote Registry Ser ...

  4. 转:Loadrunner添加服务器监控

    一.监控windows系统:1.监视连接前的准备        1)进入被监视windows系统,开启以下二个服务Remote Procedure Call(RPC) 和Remote Registry ...

  5. LoadRunner监控Linux条件和解决方法

    注:内容来自网络 需要下载3个包: (1)rsh-0.17-14.i386.rpm (2)rsh-server-0.17-14.i386.rpm (3)rpc.rstatd-4.0.1.tar.gz ...

  6. LoadRunner监控Linux与Windows方法

    1.首先保证被监视的windows系统开启以下二个服务Remote Procedure Call(RPC) 和Remote Registry Service: 2.被监视的WINDOWS机器:右击我的 ...

  7. loadrunner如何监控linux,以及重点指标分析

    监控UNIX一. lr监控UNIX ,UNIX先启动一rstatd服务 以下是在IBM AIX系统中启动rstatd服务的方法: 1. 使用telnet以root用户的身份登录入AIX系统 2. 在命 ...

  8. linux常用服务软件搭建及使用技巧

    一.Webmin安装: Webmin 是一个基于浏览器的管理工具,可以应用于Linux 和其他一些平台,提供了可以完成很多管理和操作任务的图形化界面 •安装完成后,root 用户会被自动创建,密码为系 ...

  9. LR字符串处理

    Action() { strchr和strrchr: //strchr:查找指定字符在一个字符串中第一次出现的位置,然后返回指向该位置的指针. //char *strchr(const char *s ...

随机推荐

  1. ssm搭建报错

    在搭建ssm框架时候踩得坑:1.对于拦截器url-parttern的设置:第一次设置的是/** 本以为这个是表示拦截所有,没想到这是错误的写法,正确的写法是/    启动项目不会报错,但是会出现404 ...

  2. 第三章 MySQL高级查询(一)

    第三章 MySQL高级查询(一) 一.SQL语言的四个分类 1.       DML(Data Manipulation Language)(数据操作语言):用来插入,修改和删除表中的数据,如INSE ...

  3. pseudocode of zigzag conversion

    1.Title : The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of ...

  4. Java集合源码分析(一)ArrayList

    前言 在前面的学习集合中只是介绍了集合的相关用法,我们想要更深入的去了解集合那就要通过我们去分析它的源码来了解它.希望对集合有一个更进一步的理解! 既然是看源码那我们要怎么看一个类的源码呢?这里我推荐 ...

  5. git无法pull仓库refusing to merge unrelated histories

    本文讲的是把git在最新2.9.2,合并pull两个不同的项目,出现的问题如何去解决fatal: refusing to merge unrelated histories 我在Github新建一个仓 ...

  6. 【NOIP2016提高组】 Day2 T2 蚯蚓

    题目传送门:https://www.luogu.org/problemnew/show/P2827 自测时被题面所误导...,题面中说逢t的倍数才输出答案,以为有什么玄妙的方法直接将m次操作变成了m/ ...

  7. RandomAccessFile类进行文件加密

    文件加密/解密示例. package io; import java.io.*; public class encrypt { private File file; //存储文件对象信息 byte[] ...

  8. 基于webuploader.js的单图片上传封装

    HTML代码 <div class="manageImgUp">点击图片上传</div> <div class="manageImgUpLc ...

  9. Jquery的树插件jqxTreeGrid的使用小结

    一.引入相应的js <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" t ...

  10. 微信公众平台开发接口PHP SDK

    以前没接触过微信公众平台开发,前几天刚找到实习公司就要求我做一个微信公众平台的应用,于是乎开始学习微信公众平台开发接口的调用,看开发文档之后还是不知道从何入手,只好上网找入门资料,终于在方倍工作室找到 ...