Nginx-4: Comparison with Apache performance

Source: Internet
Author: User

Pressure test
Modify the profile of the httpd stress test to add to http.conf
<Location/server-status>
SetHandler Server-status
#Order Deny,allow
#Deny from all
#Allow from 124.192.11.16
</Location>
Extendedstatus on
<Location/server-info>
SetHandler Server-info
#Order Deny,allow
#Deny from all
#Allow from 124.192.11.16
</Location>

Restart Service
Serveice httpd Restart
Http://192.168.56.20:8080/server-status
####################################################
Test
Convention: 1 user = 1 request
Multiple averages for tests
Loaderrunler

  总共请求多少  并发多少

-rw-r--r--. 1 root root 156K January 20:38 index.html

Ab-n 10000-c http://192.168.56.20:8080/(-n Total number of requests-C concurrency)
Apache Server Status for 192.168.56.20

Server version:apache/2.2.15 (Unix) DAV/2
Server built:oct 19 2017 16:43:38

Current Time:monday, 15-jan-2018 20:46:38 CST
Restart Time:monday, 15-jan-2018 20:20:21 CST
Parent Server generation:0
Server uptime:26 minutes seconds
Total Accesses:43069-total traffic:143.1 MB
CPU usage:u.75 s17.79 cu0 cs0-1.18% CPU Load
27.3 requests/sec-92.9 kb/second-3483 B/request
2 requests currently being processed, 101 idle workers
Apache when concurrency equals
1 2998 0.3
100 2533 0.3
150 2827 53
170 2599 65
190 2750 69
200 1583 157

400 748 553

Nginx when concurrency equals
1 3760 0.2
100 3939 25
200 4756 53
300 3676 81
400 3518 113

Summary Nginx Small file more powerful

Nginx-4: Comparison with Apache performance

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.