How LoadRunner monitors system resources in Linux

Source: Internet
Author: User

Some time ago, while studying LoadRunner, I used LoadRunner to monitor Windows system resources in real time in the stress scenario test. I have summarized the related process in the previous sections, recently, some friends in the group asked me how to monitor system resources in Linux. So I also set up some Linux environments and deployed a web application in Linux.ProgramThis section describes how to set loadruner to monitor Linux system resources in real time.

LoadRunner can monitor Linux system resources in the following steps:

1. Before monitoring Linux, I want to explain that the liunx system mechanism is roughly the same as that of windows. To monitor and obtain relevant parameters, you must obtain its consent, this is the operating system. Therefore, you must have sufficient permissions and methods to obtain it. For Linux, you must add regions in LR, which is equivalent to Windows. In Windows, you need to enable many permissions and some remote access processes. Currently, there is no exception in Linux. in Linux, a process is required, that is, the system Daemon RPC. restat, I believe the daemon process is no stranger to everyone. Many services are usually started during Linux system boot. These services are Daemon Processes and run independently of terminals in the background.

Therefore, you must first check whether the system has enabled the RPC service by running the rpcinfo-p command.

As you can see, if four rstatd services are enabled, the RPC daemon service is successfully started. If you do not have this service, you must manually install it.

:Http://heanet.dl.sourceforge.net/sourceforge/rstatd/

Installation: one-time run -- tar-xzvf rpc.rstatd-4.0.1.tar.gz // unzip the installation package

CD rpc. rstatd-4.0.1 // enter the rpc. rstatd directory

./Configure // configure RC. rstatd for Installation

Make // edit RC. rstatd

Make install // install

2. Restart the port ing service Portmap.

/Etc/rc. d/init. d/Portmap start // start Portmap

Find the Portmap service and click OK.

3. Run the rpcinfo-p command to check whether the service is successfully installed and started, as shown in figure 1.

4. Add Linux system resource items in the LoadRunner scenario

Note that when we add the Linux Resource Service for the first time, an error message may be prompted, indicating that the RPC service cannot be added to the client. If this happens, you may feel disappointed again. Don't worry. If you analyze the cause of the error, you can determine what the RPC service was not obtained remotely and what was hijacked. Let's look at the system firewall, the configuration of CAT/etc/sysconfig/iptables needs to be added to the RPC access policy. Therefore, I have disabled the Firewall service and do not need to set a firewall policy. The command is:

Chkconfig iptables on // Enable Firewall permanently

Chkconfig iptables off // permanently disable the Firewall

After the firewall is disabled, add Linux Resources in the LoadRunner scenario, as shown in:

 

When we see the above charts and graphs, the configuration is OK. We have made some progress by breaking the LoadRunner.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.