Apache上的設置
打開<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就會看到如下信息:
MILY: 宋體; mso-bidi-font-family: 宋體; mso-font-kerning: 0pt">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
文章來源于領測軟件測試網 http://www.kjueaiud.com/