日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

在 Linux 系统中安装Load Generator ,并在windows 调用

發布時間:2025/4/5 linux 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 在 Linux 系统中安装Load Generator ,并在windows 调用 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在 Linux 系統中安裝Load Generator ,并在windows 調用


由于公司需要測試系統的最大用戶承受能力,所以需要學習使用loadrunner。在安裝的時候碰到了不少問題,所以寫下此文章總結遇到的問題以及解決方案,希望能幫到大家。也希望大家轉載注明出處。

Winsows 的Loadrunner 安裝就不多講了,這個太容易了。

以下是Linux 中安裝 Load Generator 說明:

Linux 系統版本:CentOS5.4

Load Generator 版本 :?Load Generator 11

安裝步驟如下:

1. 到HP官網下載Load Generator 安裝文件?Software,_Load_Generator_11.00_T7330-15010.iso

2.確保系統安裝了c++ , gclib 相關工具(我的系統在安裝前已經安裝了gclib ,所以還不知道沒裝這個會發生什么問題)

3. 在Windows 系統下將Software,_Load_Generator_11.00_T7330-15010.iso ? 解壓出來會有三個文件夾(HP , Linux , Solaris),這三個文件夾是相關系統的安裝包。請根據你的系統選擇對應的文件夾copy到 ? 要安裝的Linux 系統中。為什么要使用這種解壓后copy的原因是因為我根據網上的方法copy iso 文件到Linux ? 系統中并使用掛載的方式進行安裝,碰到了很多問題,所以使用這種方式,這可是我原創的哦。我是copy到/home/LoadRunner/目錄下

4. 緊跟著就是安裝了,只需要執行指令/home/LoadRunner/Linux/installer.sh 會出現如下圖中的安裝向導歡迎界面,選擇Next [n] 即可。




5. 出現下圖許可協議界面,也只需點擊Agree [a],當然你可以選擇View Agreement [v] 查看協議的詳細內容


6. 出現確認安裝界面,選擇Install [i] 即可


7. 出現安裝界面如下圖


8. 完成安裝,選擇Finish [f] 即可,恭喜你安裝成功


9. 緊跟著就是配制環境了,網上有說要配置env.csh 的,但我安裝后env.csh 已經默認配置好了,這里也將的默認配置文件分享一下

setenv PRODUCT_DIR /opt/HP/HP_LoadGenerator
setenv M_LROOT $PRODUCT_DIR


if ( `uname` == SunOS ) then
? ? setenv LD_LIBRARY_PATH ${M_LROOT}/bin
else if ( `uname` == Linux ) then
? ? setenv LD_LIBRARY_PATH ${M_LROOT}/bin
else if ( `uname` == AIX ) then
? ? setenv LIBPATH ${M_LROOT}/bin
else if ( `uname` == HP-UX ) then
? ? setenv SHLIB_PATH ${M_LROOT}/bin
endif

setenv PATH ${M_LROOT}/bin:$PATH


10 .除了上文中講到的還需要在/root/.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


11 . Load ?Generator會安裝到/opt/HP/HP_LoadGenerator目錄下,我也是使用默認的。進行/opt/HP /HP_LoadGenerator/bin 目錄執行./verify_generator (不能使用root用戶,至于為什么還不清楚) ? ?檢查安裝是否成功,如果成功會有以下信息,

===================================================
? ? ? ? ? ? ? HP
? ? ?Vuser Environment Verification Utility
===================================================


Product: LoadRunner 11.0?
Version: 11.0.0.8866?
Build: 8866 ?

localhost.localdomain:?

verify_generator...OK
verify_generator...OK
verify_generator...OK?
Don't forget to make sure that the name of the controller machine?
is also in .rhosts?
Verify $M_LROOT ...Failed?
_____It was not possible to set the $M_LROOT from?
_____the shell dot files. One of several things might be happening:?
_____1) $M_LROOT is not set at all in the shell dot files.?
_____2) There is some error in the shell dot files which stops their execution?
_____ ? before it sets $M_LROOT.?
_____3) There is conditional code in the shell dot files (most likely related to?
_____ ? interactive and non interactive shells) and $M_LROOT is set?
_____ ? only in one of the sections.?
_____Aborting virtual user tests on host localhost.localdomain?
verify_generator...OK?
_______________________________________________


Summary:
________
Vuser Host localhost.localdomain: Failed

這些Failed 我都忽略了,因為這些Failed并不影響運行。我很希望哪位大蝦看過此文章后能在此回復解釋一下這些Failed可以解決嗎?

上 面是正確的信息,我剛開始的時候遇到了下面這些提示,注意其實這些提示都很直觀,缺少了?libstdc++.so.5 , 安裝就可以了。調用 ? yum install??libstdc++.so.5 .安裝后再調用?./verify_generator 就可以看到上面的信息了。

===================================================
? ? ? ? ? ? ? HP
? ? ?Vuser Environment Verification Utility
===================================================


Product: LoadRunner 11.0
Version: 11.0.0.8866
Build: 8866




localhost.localdomain:


/opt/HP/HP_LoadGenerator/bin/lrv/chk_thread_lmt: error while loading shared libraries: libstdc++.so.5: cannot open?


shared object file: No such file or
?directory
/opt/HP/HP_LoadGenerator/bin/lrv/limithost: line 134: [: : integer expression expected
/opt/HP/HP_LoadGenerator/bin/lrv/chk_sems_lmt: error while loading shared libraries: libstdc++.so.5: cannot open?


shared object file: No such file or d
irectory
/opt/HP/HP_LoadGenerator/bin/lrv/limithost: line 154: [: : integer expression expected
verify_generator...OK
verify_generator...OK
verify_generator...OK
Warning: The file .rhosts does not exist in the home directory of the user.
Verify $M_LROOT ...Failed
_____It was not possible to set the $M_LROOT from
_____the shell dot files. One of several things might be happening:
_____1) $M_LROOT is not set at all in the shell dot files.
_____2) There is some error in the shell dot files which stops their execution
_____ ? before it sets $M_LROOT.
_____3) There is conditional code in the shell dot files (most likely related to
_____ ? interactive and non interactive shells) and $M_LROOT is set
_____ ? only in one of the sections.
_____Aborting virtual user tests on host localhost.localdomain
verify_generator...OK
_______________________________________________


Summary:
________
Vuser Host localhost.localdomain: Failed

12 . 啟動 Load Generator ?,在安裝的bin目錄下輸入?./m_daemon_setup start 即可開戶服務了 (不能使用root 用戶啟動)

13 . 修改防火墻策略,對54345端口開放,或者直接關閉防火墻(不建議直接關閉)


講到這里安裝步驟就完,現在講如何在Windows 系統下啟用 剛才安裝的Load Generator


1. 打開Controller 的Load Generator 。 點擊 場景--> Load Generator



2. 添加一個Load Generator 。點擊 添加--> 輸入名稱(名稱即ip)--> 選擇平臺 --> 點擊更多 --> 點擊 Unix 環境 --> 勾選“不使用RSH” --> 確定


3. 添加后測試連接,如果顯示連接成功就功造成了,連接時如果有其它問題建議大家多思考,注意那些連接不成功的提前。我個人覺得LoadRunner 在提示之方面做的比較好,出了問題基本上看提示就知道問題在哪里。祝大家一切順利。


http://115.com/file/clg3cm8h

http://www.blogjava.net/qileilove/archive/2012/03/14/371861.html

轉載于:https://blog.51cto.com/85042188/1432355

總結

以上是生活随笔為你收集整理的在 Linux 系统中安装Load Generator ,并在windows 调用的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。