• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    使用LoadRunner監控Apache的步驟

    發布: 2007-4-22 19:13 | 作者: 未知    | 來源: 網絡     | 查看: 830次 | 進入軟件測試論壇討論

    領測軟件測試網

    一、ApacheMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">上的設置

    打開<Apache Installation>\conf\httpd.conf,進行如下修改:

    1、  設置允許查看Apache運行狀態的主機

    #

    # Allow server status reports, with the URL of http://servername/server-status

    # Change the ".your-domain.com" to match your domain to enable.

    #

    #取消一下代碼前面的注釋符號“#”,并且設置Order(順序)為允許優先

    <Location /server-status>

        SetHandler                                  server-status

        Order                                        allow,deny

        Deny from                                 nothing

        Allow from                                all

    </Location>

    這樣改變以后重新啟動Apache在瀏覽器中輸入http://servername/server-status就可以看到Apache運行時的信息,而輸入http://servername/server-status?auto就會看到如下信息:

    Total Accesses: 124

    Total kBytes: 444

    CPULoad: 3.32432

    Uptime: 37

    ReqPerSec: 3.35135

    BytesPerSec: 12288

    BytesPerReq: 3666.58

    BusyWorkers: 1

    IdleWorkers: 7

    Scoreboard: ____W___.........................

    看到這樣的信息就表示修改成功,這樣就可以使用LoadRunner監視Apache了。

    以下兩步跟使用LoadRunner監視Apache無關,可以跳過不看。

    2、  改變Apache的設置,打開詳細狀態開關;

    #

    # ExtendedStatus controls whether Apache will generate "full" status

    # information (ExtendedStatus On) or just basic information (ExtendedStatus

    # Off) when the "server-status" handler is called. The default is Off.

    #

    #取消了下面一行前面的注釋符號“#

    ExtendedStatus On

    3、  有用的設置,查看各模塊信息

    #

    # Allow remote server configuration reports, with the URL of

    #  http://servername/server-info (requires that mod_info.c be loaded).

    # Change the ".example.com" to match your domain to enable.

    #

    #取消一下代碼前面的注釋符號“#”,并且設置Order(順序)為允許優先

    <Location /server-info>

        SetHandler                                  server-info

        Order                                         allow,deny

        Deny from                                  nothing

        Allow from                                 all

    </Location>

    二、LoadRunner上的設置

    經過以上第一項設置以后就可以使用LoadRunner監控Apache的運行情況了,在LoadRunner可用的監視器中雙擊Web Server Resource Graphs下的Apache節點,然后在右邊對應的窗口中添加Apache所在主機的IP地址,并且加入計數器后單擊OK,這樣就可以在LoadRunner中實時顯示Apache的運行狀態信息了。

    注意:您可能收到如下消息【Monitor name :Apache. Parsing error, cannot find token: BusyServers. Measurement: BusyServers|192.168.0.186. Hints: 1) Such a measurement does not exist, or the html page may be different from the supported one. 2) Try to replace the Apache.cfg with appropriate Apache_<version>.cfg file in <Installation>\dat\monitors and rerun the application (entry point: CApacheMeasurement::NewData).   [MsgId: MMSG-47479]】,這是由于要監視Apache的版本提供的計數器與LoadRunner默認的計數器不一致導致的。此時建議先關閉Controller,打開<Installation>\dat\monitors下的apache.cfg文件(其它文件名類似Apache_<version>.cfg的是Apache監視配置的備份,只有apache.cfg是生效的):

    1、  修改Counter0=IdleServersCounter0=IdleWorkers,同時修改注釋信息Label0=#Idle Servers (Apache)Label0=#Idle Workers (Apache),描述信息也建議修改;

    2、  修改Counter4=BusyServersCounter4=BusyWorkers,同時修改注釋信息Label4=#Busy Servers (Apache)Label4=#Busy Workers (Apache) ,描述信息也建議修改。

    然后保存并關閉該文件,重新打開Controller并添加計數器,這樣監視就正常了。

    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>