ab是Apache Benchmark的縮寫,是Apache組織開發的一款web壓力測試工具,優點是使用方便,統計功能強大。
centos 下安裝
yum install apr-util
ubuntu下安裝
sudo apt-get install apache2-utils
壓測接口
ab -n 100 http:10.0.12.111:9080/menu/tree
常見參數說明
-n 請求次數
-t 請求時間,單位秒
-c 併發數
ab是Apache Benchmark的縮寫,是Apache組織開發的一款web壓力測試工具,優點是使用方便,統計功能強大。
centos 下安裝
yum install apr-util
ubuntu下安裝
sudo apt-get install apache2-utils
壓測接口
ab -n 100 http:10.0.12.111:9080/menu/tree
常見參數說明
-n 請求次數
-t 請求時間,單位秒
-c 併發數