Nginx stress testing tool-WebBench

Source: Internet
Author: User

Nginx stress testing tool-WebBench

In Apache, there are built-in AB commands to test the service pressure. nginx does not have its own commands and must be tested using a third-party software. Today we will briefly introduce the pressure test on nginx by webbench, stress testing is required for system administrators and O & M personnel. It clearly shows how much pressure the server can accept. note: I am testing on a virtual machine.

1. download and install the webbench Software

Wget http://home.tiscali.cz /~ Cz210552/distfiles/webbench-1.5.tar.gz

Tar xvf webbench-1.5.tar.gz-C/usr/local/

Cd/usr/local/webbench-1.5/

Make

Make install

2. Command details

[Root @ CentOS179min webbench-1.5] #./webbench-help
Webbench [option]... URL
-F | -- force Don't wait for reply from server.
-R | -- reload Send reload request-Pragma: no-cache.
-T | -- time <sec> Run benchmark for <sec> seconds. Default 30.
-P | -- proxy <server: port> Use proxy server for request.
-C | -- clients <n> Run <n> HTTP clients at once. Default one.
-9 | -- http09 Use HTTP/0.9 style requests.
-1 | -- http10 Use HTTP/1.0 protocol.
-2 | -- http11 Use HTTP/1.1 protocol.
-- Get Use GET request method.
-- Head Use HEAD request method.
-- Options Use OPTIONS request method.
-- Trace Use TRACE request method.
-? |-H | -- help This information.
-V | -- version Display program version.
[Root @ centos179min webbench-1.5] #

3. Test website pressure

[Root @ centos179min webbench-1.5] #./webbench-c 200-t 10 http: // 192.168.1.179/test. php
Webbench-Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http: // 192.168.1.179/test. php
200 clients, running 10 sec.

Speed = 58386 pages/min, 51328516 bytes/sec. -- number of response requests per second: Speed = 58386 pages/min, data volume transmitted per second: 51328516 bytes/sec

Requests: 9731 susceed, 0 failed. -- 10 seconds, 200 client Requests failed

[Root @ centos179min webbench-1.5] #./webbench-c 1000-t 10 http: // 192.168.1.179/test. php
Webbench-Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http: // 192.168.1.179/test. php
1000 clients, running 10 sec.

Speed = 47916 pages/min, 42126676 bytes/sec.
Requests: 7986 susceed, 0 failed. -- 1000 client Requests failed in 10 seconds

[Root @ centos179min webbench-1.5] #./webbench-c 2000-t 10 http: // 192.168.1.179/test. php
Webbench-Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http: // 192.168.1.179/test. php
2000 clients, running 10 sec.

Speed = 50394 pages/min, 44303164 bytes/sec.
Requests: 8399 susceed, 0 failed. -- no failure in sending 2000 Requests within 10 seconds

[Root @ centos179min webbench-1.5] #./webbench-c 4000-t 10 http: // 192.168.1.179/test. php
Webbench-Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http: // 192.168.1.179/test. php
4000 clients, running 10 sec.

Speed = 46644 pages/min, 40894852 bytes/sec.
Requests: 7749 susceed, 25 failed. -- in 10 seconds, 25 failed Requests sent by 4000 clients, proving that 10 seconds of concurrency does not exceed 4000.
[Root @ centos179min webbench-1.5] #

Install and test WebBench

Use WebBench to test website load

Website stress testing tool WebBench

Install and use the server stress testing tool WebBench

Download, install, and use the website stress testing tool WebBench in Linux

Two concurrent testing tools in Linux: AB & WebBench

Build a WEB server using Nginx

Build a Web server based on Linux6.3 + Nginx1.2 + PHP5 + MySQL5.5

Nginx details: click here
Nginx: click here

This article permanently updates the link address:

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.