Http_load pressure test use

Source: Internet
Author: User
Tags create url file

Description: Http_load is run in parallel multiplexing to test the throughput and load of the Web server. However, unlike most stress testing tools, it can run in a single process and generally does not kill the client. You can also test site requests for HTTPS classes.

First, http_load installation

1) Download Http_load installation package

A, can be directly downloaded: wget http://acme.com/software/http_load/http_load-12mar2006.tar.gz

Extract

Make

sudo make install

Second, the use of http_load

1. Create URL file

Since http_load is running a URL file, a txt file needs to be prepared, and a Test.txt file is created.

[email protected] http_load-12mar2006]# Touch test.txt

Edit Test.txt File:

[Email protected] http_load-12mar2006]# VI test.txt

After entering the address, save and exit:

2. Run the URL file

[Email protected] http_load-12mar2006]# http_load-p 10-s test.txt

Description

-parallel Shorthand-P: means the number of concurrent user processes.

-fetches abbreviated-F: Meaning total number of accesses

-rate Shorthand-P: meaning the frequency of visits per second

-seconds shorthand-S: meaning Total access time

Since I am a virtual machine, I will see the following:

3. Analysis of results

1) in the figure "fetches, max Parallel, 1.1037e+07 bytes, in ten seconds"

Explanation: 96 requests were run in the above test, the maximum number of concurrent processes is 10, the total data transferred is 1.1037e+07bytes, the run time is 10 seconds

2) Figure "114968 mean Bytes/connection"

Explanation: The average amount of data transmitted per connection 1.1037e+07/96=114968

3) Figure "9.59998 fetches/sec, 1.10369e+06 bytes/sec"

Explanation: The response request per second is 9.59998, and the data delivered per second is 1.10369e+06 bytes/sec

4) Figure "msecs/connect:99.3326 mean, 3005.02 max, 4.132 min"

Explanation: Average response time per connection is 99.3326 msecs, maximum response time 3005.02 msecs, minimum response time 4.132 msecs

5) Figure "msecs/first-response:71.5985 mean, 708.071 max, 4.093 min"

6) in the figure "HTTP response Codes:code 200-96"

Explanation: The type of page opened is 200, if the presence of 403 and so on, the system is experiencing bottlenecks.

Description

In general, when using Http_load for stress testing, the results of this "fetches/sec, Msecs/connect" Two items are considered, that is, the number of queries the server can respond to to measure performance metrics.

On the other hand can use Nmon to monitor the Linux server CPU, men and other analysis.

Http_load How to use:

Http_load-parallel 100-fetches 10000

#100个并发执行10000次

Http_load-parallel 100-seconds 3600

#100个并发执行1小时

Http_load-rate 100-fetches 10000

#每秒100个请求频率, Request 10,000 times

Http_load-rate 100-seconds 3600

#每秒100个请求频率执行1小时

Http_load pressure test use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.