Comparison of nginx+php and apache+php performance

Source: Internet
Author: User

Test Tools Http_load the same dynamic page test, the same hardware resources, nginx+php than apache+php performance, the same concurrency, the same number of requests for the premise

, and if the requested pressure is greater than the affordability of the hardware resource, nginx+php returns a 502 status page in some requests, which means that the site is hung up (as the user sees

come), but Apache will not, just open the site for a long time (also in the user)

nginx+php test Result diagram:

apache+php test Result diagram:

Add Nginx's cache to nginx+php

More than 4 times times more performance than apache+php, twice times better performance

FETCHES/SEC number of requests per second for the server

Msecs/connect time to complete each request

Summary: Hardware resources to meet the use of apache+php because it is super stable, of course, nginx+php is also good, insufficient hardware resources, but also to solve the current site access pressure,

Nginx+php is a good choice.

Comparison of nginx+php and apache+php 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.