Static file testing for nginx win32 (in Windows)

Source: Internet
Author: User

Download Nginx For Win32 official version nginx 0.7.53

A trial and stress test were conducted.

The installation and use method is very simple. You can directly paste the official method:
Win32 Binaries

As of 0.7.52, Nginx is now available as an official Windows binary.

Installation:

Cd c :\
Unzip nginx-0.7.52.zip
Ren nginx-0.7.52 nginx
Cd nginx
Start nginx

Control:
Nginx-s [stop | quit | reopen | reload]

For problems look in c: \ nginx \ logs \ error. log or in EventLog.

Note that the Nginx For Windows Version compiled by a third party can be loaded to the Windows Service For running. However, this method does not work in this official version. Therefore, we recommend that you start the task manually or create a new scheduled task.

Then you can't wait to perform a stress test. The tool we use is Apache AB, and the test is a pure static page. It is the default value after Nginx is installed:
Welcome to nginx!

Test command:./AB-c 100-n 10000 http: // 192.168.3.50: 8888/
Operating System: Windows server 2003 R2
Hardware configuration: Xeon 2.8G X2 1G RAM
Test results:

Server Software: nginx/0.7.53
Server Hostname: 192.168.3.50
Server Port: 8888

Document Path :/
Document Length: 151 bytes

Concurrency Level: 100
Time taken for tests: 107.329 seconds
Complete requests: 10000 (100% processing requests, no loss)
Failed requests: 0
Write errors: 0
Total transferred: 3620000 bytes
HTML transferred: 1510000 bytes
Requests per second: 93.17 [#/sec] (mean) processes 93.17 Requests per second
Time per request: 1073.293 [MS] (mean)
Time per request: 10.733 [MS] (mean, internal SS all concurrent requests)
Transfer rate: 32.94 [Kbytes/sec] canceled ed

Connection Times (MS)
Min mean [+/-sd] median max
Connect: 0 13 44.3 2 550
Processing: 180 1059 350.5 1065 2665
Waiting: 178 1053 352.3 1058
Total: 194 1071 351.9 1074

Percentage of the requests served within a certain time (MS)
50% 1074
66% 1162
75% 1215
80% 1288
90% 1547
95% 1694
98% 1853
99% 1946
100% 2668 (longest request)
################

According to the test results, 100 Nginx for windows threads can only process 93 requests per second.
If you start more than one AB thread, the total number of threads is 200. The AB result is equivalent. Each client processes 93 requests per second.
However, if you start the third AB for 100 thread pressure, one of the two active AB will be rejected by the server.

It is fruitless to try to modify the worker_processes parameter of Nginx back and forth, and there is no result to modify the concurrent thread of Win2003 .... Is Nginx only capable of doing so in Windows ?? Go back and look for the reason in detail.

Another problem is that when the stress test is completed, you can view the process in windows and check that Nginx still occupies 2 ~ 30 cpu.
Nginx-s stop cannot be stopped under the command line. Process must be ended .....

################

In my initial attempt to address these issues, I hope that some of my questions will be answered.

Configure the PD930 CPU and 2 GB memory. The test result is as follows:

C: \> AB-n 10000-c 100 http: // 192.168.1.8/
This is apachetings, Version 2.3 <$ Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.1.8 (be patient)
Completed1000 requests
Completed2000 requests
Completed3000 requests
Completed4000 requests
Completed5000 requests
Completed6000 requests
Completed7000 requests
Completed8000 requests
Completed9000 requests
Completed10000 requests
Finished 10000 requests

Server Software: nginx/0.7.52
Server Hostname: 192.168.1.8
Server Port: 80

Document Path :/
Document Length: 151 bytes

Concurrency Level: 100
Time taken for tests: 5.109 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 3620000 bytes
HTML transferred: 1510000 bytes
Requests per secondd: 1957.19 [#/sec] (mean)
Time per request: 51.094 [MS] (mean)
Time per request: 0.511 [MS] (mean, internal SS all concurrent requests)
Transfer rate: 691.90 [Kbytes/sec] canceled ed

Connection Times (MS)
Min mean [+/-sd] median max
Connect: 0 0 2.4 0 16
Processing: 16 50 13.3 47 78
Waiting: 0 34 14.4 31 78
Total: 16 51 13.3 47 78

Percentage of the requests served within a certain time (MS)
50% 47
66% 63
75% 63
80% 63
90% 63
95% 63
98% 63
99% 78
100% 78 (longest request)

Related Article

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.