← 返回命令列表

Linux command

http_load 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Example

http_load -rate 20 -seconds 60 urls.txt

Example

http_load -parallel 5 -seconds 60 urls.txt

Example

http_load -rate 20 -fetches 1000 urls.txt

Example

http_load -parallel 5 -fetches 1000 urls.txt

Example

echo "http://example.com/" | http_load -parallel 5 -seconds 30 /dev/stdin

说明

http_load is an HTTP benchmarking tool that runs multiple HTTP fetches in parallel to test the throughput and response time of a web server. It reads URLs from a file and generates load according to specified parameters.

参数

-rate N
Generate N requests per second
-parallel N
Keep N connections active simultaneously
-fetches N
Total number of requests to perform
-seconds N
Duration of the test in seconds
-timeout N
Timeout for each request in seconds
-sip
Source IP addresses (one per line in file)
-cipher CIPHER
SSL cipher to use
-proxy HOST:PORT
Use HTTP proxy

FAQ

What is the http_load command used for?

http_load is an HTTP benchmarking tool that runs multiple HTTP fetches in parallel to test the throughput and response time of a web server. It reads URLs from a file and generates load according to specified parameters.

How do I run a basic http_load example?

Run `http_load -rate 20 -seconds 60 urls.txt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -rate N do in http_load?

Generate N requests per second