LoadRunner系统资源监视(2)

发表于:2013-04-18来源:Csdn作者:xuyubotest点击数: 标签:loadrunner
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 re

  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:
  1 . Run the command: su root
  2 . 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.
  3 . 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.
  4 . Run rup again.
  If the command still does not indicate that the rstatd daemon is configured,contact your system administrator.
  Note: 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.
  Adding a Machine to Monitor
  1 .Click the UNIX Resources graph in the graph tree, and drag it into the right pane of the Run view.
  2 .Right-click the graph and select Add Measurements , or click anywhere on the graph and choose Monitors > Add Measurements . The UNIX Resources dialog box opens.
  In the Monitored Server Machines section, click Add. The Add Machine dialog box opens.
  3 .Enter the server name or IP address of the machine you want to monitor,and click OK .
  4 .In the Resource Measurements section of the UNIX Resources dialog box,select the measurements you want to monitor.
  5 .To select additional measurements, click Add .
  6 .Continue with Configuring the UNIX Resources Monitor.
  附录 A: Windows Resource Performance Counters
Object Measurement Description
System % Total Processor
Time
The average percentage of time that all the processors on the system are busy executing non-idle threads. On a multiprocessor system, if all processors are always busy, this is 100%, if all processors are 50% busy this is 50% and if 1/4 of the processors are 100% busy this is 25%. It can be viewed as the fraction of the time spent doing useful work. Each processor is assigned an Idle thread in the Idle process which consumes those unproductive processor cycles not used by any other threads.
System File Data
Operations/sec
The rate at which the computer issues read and write operations to file system devices.This does not include File Control Operations.
Processor % Processor Time
(Windows 2000)
The percentage of time that the processor is executing a non-idle thread. This counter was designed as a primary indicator of processor activity. It is calculated by measuring the time that the processor spends executing the thread of the idle process in each sample interval, and subtracting that value from 100%. (Each processor has an idle thread which consumes cycles when no other threads are ready to run). It can be viewed as the percentage of the sample interval spent doing useful work. This counter displays the average percentage of busy time observed during the sample interval. It is calculated by monitoring the time the service was inactive, and then subtracting that value from 100%.
System Processor Queue
Length
The instantaneous length of the processor queue in units of threads. This counter is always 0 unless you are also monitoring a thread counter. All processors use a single queue in which threads wait for processor cycles. This length does not include the threads that are currently executing. A sustained processor queue length greater than two generally indicates processor congestion. This is an instantaneous count, not an average over the time interval.
Memory Page Faults/sec This is a count of the page faults in the processor. A page fault occurs when a process refers to a virtual memory page
that is not in its Working Set in the main memory. A page fault will not cause the page to be fetched from disk if that page is on the standby list (and hence already in main memory), or if it is in use by another process with which the page is shared.
PhysicalDisk % Disk Time The percentage of elapsed time that the selected disk drive is busy servicing read or write requests.
Memory Pool Nonpaged Bytes The number of bytes in the nonpaged pool, a system memory area where space is acquired by operating system components as they accomplish their appointed tasks.Nonpaged pool pages cannot be paged outto the paging file. They remain in main memory as long as they are allocated.
Memory Pages/sec The number of pages read from the disk or written to the disk to resolve memory references to pages that were not in memory at the time of the reference. This is the sum of Pages Input/sec and Pages Output/sec. This counter includes paging traffic on behalf of the system cache to access file data for applications. This value also includes the pages to/from non-cached mapped memory files. This is the primary counter to observe if you are concerned about excessive memory pressure (that is,thrashing), and the excessive paging that may result.
System Total Interrupts/sec The rate at which the computer is receiving and servicing hardware interrupts. The devices that can generate interrupts are the system timer, the mouse, data
communication lines, network interface cards, and other peripheral devices. This counter provides an indication of how busy these devices are on a computer-wide basis. See also Processor:Interrupts/sec.
Objects Threads The number of threads in the computer at the time of data collection. Notice that this is an instantaneous count, not an average over the time interval. A thread is the basic
executable entity that can execute instructions in a processor.
Process Private Bytes The current number of bytes that the process has allocated that cannot be shared with other processes.
  附录 B: UNIX Resources Performance Counters

原文转自:http://blog.csdn.net/xuyubotest/article/details/6003196