Nginx Win32 version static file test (Windows environment) _win Server

Source: Internet
Author: User
Tags server port
Downloaded the official version of Nginx for Win32 Nginx 0.7.53

A trial and stress test was conducted.

Installation is easy to use, directly affixed to the official way:
Win32 Binaries

As of 0.7.52, Nginx is now available as a 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.

But to illustrate, there was a third-party-compiled version of Nginx for Windows that can be loaded into a Windows service. But in this official version of the method is not feasible. It is recommended that you manually start the operation temporarily or create a new scheduled task to boot.

Then wait for the stress test. The tool we use is Apache AB, which tests the pure static page. is Nginx the default after a good fit:
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 request, not lost)
Failed requests:0
Write errors:0
Total transferred:3620000 bytes
HTML transferred:1510000 bytes
Requests per second:93.17 [#/sec] (mean) Processing request 93.17 each second
Time per request:1073.293 [MS] (mean)
Time/request:10.733 [MS] (mean, across all concurrent requests)
Transfer rate:32.94 [Kbytes/sec] Received

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 2664
total:194 1071 351.9 1074 2668

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)
################

As a result of the test results, the Nginx for Windows 100 threads can handle only 93 requests per second.
If you start more than one AB to pressure, add up to have 200 threads, AB results are equivalent. Each side handles 93 requests per second.
But if you restart the third AB for 100 thread pressures, one of the 2 AB in progress will be rejected by the server.

Attempts to modify the Nginx worker_processes parameters are fruitless, and Win2003 concurrent threads have not been modified ... can Nginx only have this ability under Windows? Go back and look for the reason in detail.

Another problem is that when the stress test is over, viewing the process in Windows will reveal that Nginx still occupies the 2~30 CPU.
Nginx-s stop can not stop at the command line. The process must be ended .....

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

Preliminary attempt on these points, hope is my individual problems, the opportunity of friends may wish to try.

Configure PD930 cpu,2g memory, test results are as follows:

C:\>ab-n 10000-c http://192.168.1.8/
This is apachebench, 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)
Completed 1000 Requests
Completed Requests
Completed 3000 Requests
Completed 4000 Requests
Completed 5000 Requests
Completed 6000 Requests
Completed 7000 Requests
Completed 8000 Requests
Completed 9000 Requests
Completed 10000 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 second:1957.19 [#/sec] (mean)
Time per request:51.094 [MS] (mean)
Time/request:0.511 [MS] (mean, across all concurrent requests)
Transfer rate:691.90 [Kbytes/sec] Received

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% (Longest request)

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.