HP unix LoadGenerator 安装手册-Zee
上一篇 / 下一篇 2009-07-29 10:50:35 / 个人分类:Zee的生活
转载请注明:http://www.7dtest.com/
LR安装版本:8.1
1环境配置
1.1环境要求
实际内存要求可能会因您的配置的不同而有所差异。请注意,安装过程会占用额外的内存,这部分内存将在安装完成后变为可用内存。要确保UNIX组件顺利安装,建议您确保在要安装LoadRunner的磁盘分区上有足够的存储空间、进程条目和交换空间。
下表描述了由Mercury所支持的、用于LoadRunner UNIX Vuser的每种平台的系统要求。
平台 | 硬件 | 版本 |
HP | HP 9000 series 700、800 | HP-UX 11.x版或更高版本 |
请注意,LoadRunner支持所有的X Server。
1.2系统资源
以下描述每种平台或操作系统所需的系统资源。实际资源可能会因所购买的Vuser许可证数目的不同而有所差异。
以下列出的Vuser的资源适用于各种虚拟用户。如果要安装多个虚拟用户,您必须将此数字乘以虚拟用户的数目。
上面的内存空间描述的是常规C-Vuser类型。其他类型可能会占用更多的内存空间。例如,每个Web Vuser至少占用500 KB。
说明 | 资源占用 |
安装程序所需的磁盘空间 | 22 MB(Linux为34 MB) |
每个Vuser作为线程运行时的内存空间 | 300 KB(至少)。该数值可能会因操作系和平台的不同而有所差异,并且不包括进程所占用的内存。 |
每个Vuser作为进程运行时的内存空间 | 1.5 MB(Solaris为2.5 MB) |
交换空间 | 大约1:7的内存/交换配额 |
每个Vuser作为进程运行时的可用进程条目 | 1 |
每个Vuser作为线程运行时的文件描述符 | 2(参阅以下内容) |
上面的内存空间描述的是常规C-Vuser类型。其他类型可能会占用更多的内存空间。例如,每个Web Vuser至少占用500 KB。
1.3修改进程条目
- 命令行连到HP unix,用root权限用户登录,输入sam,回车。如下:
# sam |
- 在如下界面选择,Kernel Configuration,回车:
- 选择Configurable Parameters,回车:
- 查看如下参数,如需修改,则按如下数值修改:
nproc:并发进程数—(# user数* 2)+ 200
maxuser:最大用户数—DB + RTE Vuser数+ 20
maxuprc:每个用户的进程数—# Vuser数* 2
ØNproc(查看红线标注部分)
ØMaxuser和maxuprc(查看红线标注部分)
- 修改方法
- 光标定位到需要修改的行;
- 按tab键选择菜单,按左右方向键定位到Actions,回车,选择Modify Configurable Parameter;
- 按再Tab键选择Formula/Value,输入数值,再按tab键选择OK,回车确认即可。
1.4修改文件描述符
同修改进程条目,进入Sam,同样定位到Maxfiles,如需修改,则按1.3中的方法修改数值,如下所示。
1.5上传文件
如果是FTP上传,一定要用二进制模式。不然在安装时会报错。
2安装Load Generator步骤
这里使用控制台安装的方式。注意:使用GUI安装的方式要配置DISPLAY变量。
命令行连接到HP unix,转到Load Generator安装目录,执行命令。
1.修改文件权限:
#Chmod 777 install.sh #Chmod 777 inst |
2.运行安装命令,如下所示:
# ./install.sh -console InstallShield Wizard Initializing InstallShield Wizard… Preparing Java(tm) Virtual Machine… ………………………………………………………………………………………………………………………….. ………………………………………………………………………………………………………………………….. …………………………………………………………………………………………………………………. Starting logging … Logging to file ‘//Mercury_LoadRunner_8.1.06.04.13.12.install.html’ ——————————————————————————- Read the following license agreement carefully. SHRINK-WRAP/CLICK-WRAP LICENSE A SHRINK-WRAP/CLICK-WRAP LICENSE AGREEMENT BY OPENING THIS PACKAGING, INDICATING YOUR ACCEPTANCE OF THE FOLLOWING TERMS (SELECTING “AGREED”, “YES” OR OTHERWISE) OR BY INSTALLING, COPYING, OR OTHERWISE USING MERCURY INTERACTIVE CORPORATION AND/OR ITS AFFILIATES’ (”MERCURY”) SOFTWARE AND/OR ANY OF ITS LICENSORS’ SOFTWARE AS PROVIDED HEREUNDER (COLLECTIVELY “SOFTWARE”) AND THE UPDATES THERETO, YOU AS LICENSEE (”YOU”) AGREE TO BE BOUND BY THIS SHRINK-WRAP/CLICK-WRAP LICENSE AGREEMENT (”AGREEMENT”). IF YOU DO NOT AGREE TO THESE TERMS, DO NOT INSTALL OR USE THE SOFTWARE AND RETURN IT AND ALL ACCOMPANYING COMMERCIALLY SHIPPED SOFTWARE DOCUMENTATION (”DOCUMENTATION”) TO YOUR PLACE OF PURCHASE WITHIN TEN (10) DAYS FOR A FULL REFUND. 1. LICENSE GRANT. Mercury or its licensors own and shall retain all intellectual property rights including, without limitation, patent, copyright, trade secret, trademark and other proprietary rights, in and to the Software, Press ENTER to read the text [Type q to quit] |
3.连续按回车。一直到:
Press ENTER to read the text [Type q to quit] Rev June 7, 2005 Please choose from the following options: [ ] 1 - I accept the terms of the license agreement. [X] 2 - I do not accept the terms of the license agreement. To select an item enter its number, or 0 when you are finished: [0] 1 |
4.选择1,回车:
[X] 1 - I accept the terms of the license agreement. [ ] 2 - I do not accept the terms of the license agreement. To select an item enter its number, or 0 when you are finished: [0] 0 |
5.输入0,回车:
[X] 1 - I accept the terms of the license agreement. [ ] 2 - I do not accept the terms of the license agreement. To select an item enter its number, or 0 when you are finished: [0] 0 Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1 |
6.输入1,回车:
Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1 ——————————————————————————- Mercury LoadRunner 8.1 Install Location Please specify a directory or press Enter to accept the default directory. Directory Name: [/opt/Mercury] Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 |
7.输入1,回车:
Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 Please wait … ——————————————————————————- Mercury LoadRunner 8.1 will be installed in the following location: /opt/Mercury with the following features: Basic Injector for a total size: 152.8 MB Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 |
8.输入1,回车:
Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 Please wait … Installing Mercury LoadRunner 8.1. Please wait… |———–|———–|———–|————| 0%25%50%75%100% |||||||||||||||||||||||||||||||||||||||||||||||||| Creating uninstaller… Merging files. Please wait… Setting permissions… chmod: invalid mode ——————————————————————————- Please read the information below. To complete the Mercury LoadRunner 8.1 Unix installation, add the following statement to the .cshrc file for each user: source /opt/Mercury/env.csh The env.csh file defines the environment variables. Press 1 for Next or 4 to Redisplay [1] 1 |
9.输入1,回车:
Press 1 for Next or 4 to Redisplay [1] 1 ——————————————————————————- The InstallShield Wizard has successfully installed Mercury LoadRunner 8.1. Choose Finish to exit the wizard. Press 3 to Finish or 4 to Redisplay [3] 3 |
10.输入3,完成安装。
3配置环境变量
进入home,修改.profile文件添加内容如下:
M_LROOT=/opt/Mercury export M_LROOT SHLIB_PATH=$M_LROOT/bin export SHLIB_PATH PATH=$PATH:$M_LROOT/bin:. export PATH |
原文件为:
# @(#)B.11.11_LR # Default user .profile file (/usr/bin/sh initialization). # Set up the terminal: if [ "$TERM" = "" ] then eval ` tset -s -Q -m ‘:?hp’ ` else eval ` tset -s -Q ` fi stty erase “^H” kill “^U” intr “^C” eof “^D” stty hupcl ixon ixoff tabs # Set up the search paths: PATH=$PATH:. # Set up the shell environment: set -u trap “echo ‘logout’” 0 # Set up the shell variables: EDITOR=vi export EDITOR |
修改后为(红色部分为添加的内容):
# @(#)B.11.11_LR # LoadRunner settings # M_LROOT=/opt/Mercury export M_LROOT SHLIB_PATH=$M_LROOT/bin export SHLIB_PATH # End LoadRunner setting # # Default user .profile file (/usr/bin/sh initialization). # Set up the terminal: if [ "$TERM" = "" ] then eval ` tset -s -Q -m ‘:?hp’ ` else eval ` tset -s -Q ` fi stty erase “^H” kill “^U” intr “^C” eof “^D” stty hupcl ixon ixoff tabs # Set up the search paths: PATH=$PATH:. export PATH # Set up the shell environment: set -u trap “echo ‘logout’” 0 # Set up the shell variables: EDITOR=vi export EDITOR PATH=$PATH:$M_LROOT/bin:. export PATH |
如果需要运行.verify_generator验证安装是否正常,需要添加如下配置:
DISPLAY=128.192.128.144:0.0 export DISPLAY |
修改完环境变量后,需要执行使其生效:
#. .profile |
4运行LoadGenerator
进入安装目录/opt/Mercury/bin,如果设置了此路径到path环境变量中去,则不需要进入到这个目录即可运行以下命令:
# m_daemon_setup start m_agent_daemon (19047), |
查看此进程开的相关进程:
#ps -ef|grep 19047 LRtester 19069 189261 12:27:27 pts/ta0:00 grep 19047 LRtester 19062 190470 12:26:21 ?0:00 lr_bridge.exe -f /tmp/brr_a19047/process_mdrv_cmdln.prm -lnch_v LRtester 1904710 12:23:41 ?0:00 m_agent_daemon -usr dat/br_lnch_server.usr -launcher_service -l # |
查看相关端口:
#netstat -an |grep 54345 tcp00 0.0.0.0:543450.0.0.0:*LISTEN |
如果需要停止此进程,可使用如下命令:
#m_daemon_setup stop m_agent_daemon ( is down ), |
5与controller连接
- 在controller中点击Generators…:
- 点击Add…,输入IP地址,选择Platform,选中Don’t use RSH,点击OK,如下所示:
- 返回到如下界面,点击Connect:
- 连接成功如下所示:
- 在HP unix上可以查看到controller和loadgenerator的连接:
#netstat –a …………………………………………………….. tcp00128.192.128.144.54345128.32.187.23.3870ESTABLISHED |
6卸载Load Generator
进入到_uninst目录,运行:uninstall –console命令。
[root@localhost Mercury]# cd _uninst [root@localhost _uninst]# ls uninstalluninstall.datuninstall.jar [root@localhost _uninst]# uninstall -console InstallShield Wizard Initializing InstallShield Wizard… Starting logging … Logging to file ‘/root/Mercury_LoadRunner_8.1.uninst.06.04.16.05.install.html’ Please wait … ——————————————————————————- Mercury LoadRunner 8.1 will be uninstalled from the following location: /opt/Mercury with the following features: Basic Injector Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1 Uninstalling Mercury LoadRunner 8.1… ——————————————————————————- The InstallShield Wizard has successfully uninstalled Mercury LoadRunner 8.1. Choose Finish to exit the wizard. Press 3 to Finish or 4 to Redisplay [3] 3 WARNING: could not delete locked file /opt/Mercury/Temp WARNING: could not delete locked file /opt/Mercury [root@localhost _uninst]# |
7总结
注意在修改环境变量的时候,一定要查看一下。环境变量是否设置成功。输入env可以查看环境变量,查看:path/M_LROOT/SHLIB_PATH。
强调:
1.如果用FTP上传安装文件一定要用二进制模式,用bin命令转换模式。
2.如果是在卸载后安装,需要删除原安装目录。
TAG:
- 引用 删除 zgjd51testing / 2010-02-07 19:29:54
- 还没有装过Unix下的LR呢,学习学习~~~
我的栏目
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | 3 | 4 | 5 | 6 | ||||
7 | 8 | 9 | 10 | 11 | 12 | 13 | |||
14 | 15 | 16 | 17 | 18 | 19 | 20 | |||
21 | 22 | 23 | 24 | 25 | 26 | 27 | |||
28 | 29 | 30 |
我的存档
数据统计
- 访问量: 157921
- 日志数: 146
- 图片数: 1
- 建立时间: 2006-12-05
- 更新时间: 2012-11-16