Install load generator steps and problem solving under Linux

Source: Internet
Author: User

Install load generator steps and problem solving under Linux

Previous/Next 2014-08-06 18:33:00/personal Category: LoadRunner related

View (146)/COMMENT (0)/rating (0/0)

A. Get the installation package

Resources can be obtained on the HP website or in other ways. Resources as shown

two. Copy the installation package to the Linux server

Before the copy to extract the acquired installation package, extracted into a folder, in order to facilitate the copy and operation under Linux , I will unzip the folder into a zip package.

Use the securecpt tool to copy the local files to a remote Linux Server, log in to the server after the rz command pop-up file Operation window, select the prepared Zip package, add, Next, wait for the file to be copied.

three. Installation

Enter the directory where the zip package is stored and execute the unzip loadrunnergeneratorforlinux.zip command to extract the files;

After extracting the executable file directory under the installer.sh file for installation, the command is:./installer.sh;

Then follow the prompts to proceed until you see the completion prompt.

This process is relatively simple, not detailed description, the following gives the installation process encountered some problems and solutions

    1. 1. the Unzip command is not recognized under the Linux machine used when extracting

Workaround:yum install-y unzip zip(execute once)

    1. 2. "xxx.sh does not has executable permissions" during the execution of the sh file

Resolution:chmod 777 xxx.sh(to file authorization)

Four. Post-installation environment configuration

After the installation is complete,/opt/hp/hp_loadgenerator/will have a env.csh. The environment variable inside it needs to be added to the. csh or. profile file. Perform the following actions

Vi/etc/csh.cshrc

At the end of the document, add

Source/opt/hp/hp_loadgenerator/env.csh

setenv DISPLAY 0.0

Use when saving: wq!

In addition, if you are in the Linux,bash environment, you need to find the. bashrc file in root (etc) directory, add the following:

Vi/etc/bashrc

Export Product_dir=/opt/hp/hp_loadgenerator

Export m_lroot= $PRODUCT _dir

Export Ld_library_path=${m_lroot}/bin

Export Path=${m_lroot}/bin: $PATH

Five. Installation Verification

After completing the fourth step, the Load generator will be installed in the/opt/hp/hp_loadgenerator directory, and the default should be used to verify that the installation is successful. Enter the/opt/hp/hp_loadgenerator/bin directory to execute./verify_generator (cannot use root user) to check if the installation was successful, if successful, the following will be displayed:

[Email protected] bin]$./verify_generator

===================================================

Hp

VUser Environment Verification Utility

===================================================

Product: loadrunner 11.0

version:11.0.0.8866

build:8866

Verify_generator must has a DISPLAY set, please set and rerun

Add user

Useradd Yuxunchao//Add user

Su Yuxunchao//switch User

Six. Start the LR load End

To start the LR load side:

Cd/opt/hp/hp_loadgenerator/bin

./m_daemon_setup Start

If successful, you will be prompted: M_agent_daemon (PID of the process),

If it fails, it prompts: M_agent_daemon (IS),

Solution Reference http://blog.sina.com.cn/s/blog_62079f62010199vm.html the last

This step may encounter the following error

Hint stating that the id-linux.so.2 file is missing from Lib

Workaround: Execute the yum install glibc.i686 to

Reinstall the following error before continuing with the installation package

Error while loading shared Libraries:libstdc++.so.6:cannot open Shared object file:no such file or directory

Yum Install libstdc++.so.6

Seven. Local call to load machine under Linux

Open the controller side on Windows,

Set up the scene, select the script to execute, in design mode, click on the right generators,

Click Add in the Small pop-up window to add a new load Generator,

In name, fill in the IP address of the Linux server, at platform, select Unix,

Click More, under the UNIX Environment tab, tick the Don't use rsh entry.

Click on the "OK" button,

On the Load Generators page, select on the loading machine you just added, click "Connect", after the connection is successful,

In scenario groups, modify the load generators localhost for the machine you just added.

Install load generator steps and problem solving under Linux

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.