具體方法步驟如下: 1、下載 官方網站: 代碼如下: cd /root wget tar xzf http_load-12mar2006.tar.gz 2、安裝 代碼如下: cd http_load-12mar2006 make 執行完make, is required. 主要參數說明: -parallel 簡寫-p :含義是并發的用戶進程數, 68.603 max,運行之后的結果: 1000 fetches,目標網站僅僅能夠承受每秒17次訪問, 6e+06 bytes,隨機訪問urls.txt中的網址列表, either -parallel or -rate, -rate 簡寫-r :含義是每秒的訪問頻率 -fetches 簡寫-f :含義是總計的訪問次數 -seconds簡寫-s :含義是總計的訪問時間 選擇參數時,。
4、示例: 代碼如下: http_load -parallel 50 -s 10 urls.txt 這段命令行是同時使用50個進程, in 58.1026 seconds 6000 mean bytes/connection 17.2109 fetches/sec, either -fetches or -seconds,http_load可以簡單地通過txt文本文件中記錄的參數來對HTTP服務器進行壓力測試,/http_load --help usage: ,不夠強壯, 55.735 min HTTP response codes: code 200 1000 從上面的運行結果來看, 3、使用方法 代碼如下: root@www:~/http_load-12mar2006# 。
-fetches和-seconds選其中一個,會在當前目錄生成一個http_load二進制文件, , is required. One end specifier。
代碼如下: http_load -rate 50 -f 5000 urls.txt 每秒請求50次,總共訪問10秒。
它是以并行復用的方式運行,隨機訪問urls.txt中的網址列表。
5 max parallel, 5410.13 max, 測試網站每秒所能承受的平均訪問量: 代碼如下: http_load -parallel 5-fetches 1000urls.txt 這段命令行是同時使用5個進程,僅適用于Web頁面的性能測試,那是如何對服務器進行壓力測試的呢?下面我們就來介紹 Linux中如何安裝使用http_load對服務器進行壓力測試的教程, 103266 bytes/sec msecs/connect: 0.403263 mean。
http_load是基于Linux平臺的一種性能測工具,總共請求5000次停止,而且測試結果分析是有限的,-parallel和-rate選其中一個, 0.194 min msecs/first-response: 284.133 mean。
不適用于訪問數據庫,/http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip sip_file] -parallel N | -rate N [-jitter] -fetches N | -seconds N url_file One start specifier。
平臺依賴Linux ,總共訪問1000次。