乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      LoadRunner 安裝方法與系統(tǒng)環(huán)境初始化過程

       計(jì)算機(jī)常用軟件 2011-07-13
      了解過性能測試的朋友,想必對LoadRunner一定不陌生。

          不錯(cuò),LoadRunner很強(qiáng)大。但你是否能發(fā)揮LoadRunner的強(qiáng)大功能呢?

         本文介紹筆者在實(shí)踐過程中批量安裝LoadRunner和初始化環(huán)境的過程(windows/Linux):

      ------------------ Windows ------------------

      1、 安裝.net framwork 3.5
      2、 安裝LoadRunner(安裝包路徑和程序安裝路徑中不要有中文)
      3、 安裝JDK(下載官方最新安裝包,所有機(jī)器安裝目錄建議相同)
      4、 安裝C++運(yùn)行庫
              Microsoft Visual C++ 2005 Redistributable + sp1
              Microsoft Visual C++ 2008 Redistributable + sp1
      5、 將系統(tǒng)臨時(shí)文件存在在空間最大的磁盤上。譬如執(zhí)行批處理如下:
              wmic ENVIRONMENT where "name='temp' or name='tmp'" set VariableValue='D:\temp'
      6、 修改系統(tǒng)注冊表,增加系統(tǒng)最大吞吐能力。批處理如下:
              echo Yes | reg add HKLM\System\CurrentControlSet\Services\tcpip\Parameters /v MaxUserPort /t reg_Dword /d 65534 /f
              echo Yes | reg add HKLM\System\CurrentControlSet\Services\tcpip\Parameters /v TcpTimedWaitDelay /t reg_Dword /d 5 /f
      7、 保證RemoteRegistry服務(wù)自動(dòng)啟動(dòng),資源監(jiān)控時(shí)需要用到:
              sc config RemoteRegistry start= auto
      8、 將LoadRunner的Agent添加到服務(wù)并自動(dòng)啟動(dòng):
              "%LoadRunner%\LAUNCH_SERVICE\bin\magentservice.exe" –install
      9、 各測試機(jī)時(shí)間同步,可使用Windows的時(shí)間同步或第三方軟件實(shí)現(xiàn)。筆者使用Linux的NTP服務(wù)。
      10、 如果安裝有防火墻,注意給LoadRunner放行。
      11、 如果要進(jìn)行Oracle的測試,還需要安裝Oracle客戶端。
      12、 開啟自動(dòng)登錄,運(yùn)行`control userpasswords2`取消勾選“要使用本機(jī),用戶必須輸入用戶名和密碼”(配合第13點(diǎn),防止系統(tǒng)更新完成后自動(dòng)重啟)
      13、 禁止系統(tǒng)更新自動(dòng)重啟功能:
              echo Yes | reg add HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoRebootWithLoggedOnUsers /t reg_Dword /d 1 /f

         測試環(huán)境:

      Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2 _ cn _ i386 (v5.2.3790)

      HP LoadRunner Software 9.50.0.0 Build 3210

      ------------------ Linux ------------------

      1.      在HP的官方網(wǎng)站上下載LoadRunner9.5 的Linux安裝程序[T7177-15009.iso],安裝文檔[hp_man_LRIG9.50_01_pdf.pdf];

      安裝程序包括Hp、Ibm、Linux、Solaris系統(tǒng)的支持(LR9.0對應(yīng)安裝文件為[TLRNUX900WC_00.zip])。

       

      2.      安裝包的處理

      1.      ZIP解壓:unzip TLRNUX900WC_00.zip

      2.      掛載ISO:mkdir /mnt/LoadRunner ; mount -t iso9660 -o loop T7177-15009.iso /mnt/LoadRunner

       

      3.      開始安裝,以LR9.5為例:

      /mnt/LoadRunner/Linux/installer.sh

      按提示操作,直接Next到完成。

       

      4.      添加用戶和環(huán)境變量

      useradd -g 0 -s /bin/csh higkoo

      cat /opt/HP/HP_LoadGenerator/env.csh > /etc/.login

      cat /opt/HP/HP_LoadGenerator/env.csh >~higkoo/.cshrc

      touch ~root/.rhosts ~higkoo/.rhosts

       

      5.      檢查運(yùn)行環(huán)境(在本機(jī)或使用VNC執(zhí)行):

      su - higkoo

      cd /opt/HP/HP_LoadGenerator/bin/

      ./verify_generator

       

      6.      啟動(dòng)服務(wù)(用新增的用戶higkoo):

      cd /opt/HP/HP_LoadGenerator/bin/

      ./m_daemon_setup start

       

      7.      檢查是否啟動(dòng)

      ps aux | grep m_agent_daemon

      netstat -naop | grep 54345

       

      8.      注意事項(xiàng)

      開啟端口54345或關(guān)閉防火墻(service iptables stop)

       

       

      正確設(shè)置后用verify_generator的檢測結(jié)果是:

      ./verify_generator

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

                    HP

           Vuser Environment Verification Utility

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

       

      Product: HP LoadRunner 9.50

      Version: 09.50.0000

      Build: 3378

      higkoolincn100ce5:

       

      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_generator...OK

      verify_generator...OK

      verify_generator...OK

      verify_generator...OK

      verify_generator...OK

      verify_generator...OK

      verify_generator...OK

      _______________________________________________

       

      Summary:

      ________

      Vuser Host higkoolincn100ce5: OK

       

      使用Controller連接,在“UNIX Environment Tab”下選擇“Don't use RSH ”即可連接Linux負(fù)載機(jī)。

      若使用RSH連接,則負(fù)載機(jī)必須安裝RSH并正確配置,正如檢測過程中描述的“Don't forget to make sure that the name of the controller machine”。

      最簡單的解決辦法是不采用RSH連接,直接以服務(wù)方式運(yùn)行即可。

      補(bǔ)充一點(diǎn),Linux下只能安裝LoadRunner負(fù)載生成器。而且支持的協(xié)議相對Windows下要少很多。譬如WinSock協(xié)議,從名稱上都知道只適合Windows:

          “Error (-81024): LR_VUG: The 'WinSock' type is not supported on 'LINUX' platforms .”

      另外試了Java協(xié)議,確實(shí)不行,報(bào)錯(cuò)如下:

          Error (-81024): LR_VUG: The 'General-Java' type is not supported on 'LINUX' platforms .

       

        本站是提供個(gè)人知識管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多