ab |
|
ab - Apache HTTP server benchmarking tool
ab
is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.
1.安装
yum install httpd
2.相关命令参数
ab -n 5000 -c 200 http://localhost/index.php
-n为总的请求数,-c为并发数
官方文档地址:
http://httpd.apache.org/docs/2.0/programs/ab.html
本文出自 “运维自动化” 博客,请务必保留此出处http://shower.blog.51cto.com/4926872/1971903