Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2009
    Posts
    30

    Apache vs Nginx (mod_php VS php-fpm)

    Here is the comparison between Apache and Nginx. Request processing overhead and real-world application performance measurements included.

    http://blog.a2o.si/2009/06/24/apache...nginx-php-fpm/

    b.

  2. #2

    Thumbs up

    like the nginx
    this best web servers

  3. #3
    Please try the test over again with the client running on a separate machine. Try not to use ab as it is known to suck resources like a sponge. The apache developers themselves no longer use it for benchmarking because of that reason. An alternative is siege.

    Furthermore, in addition to the workload, disclosure of the network and server hardware is a must before any benchmark can be taken seriously.
    edgedirector.com
    managed dns global failover and load balance (gslb)
    exactstate.com
    uptime report for webhostingtalk.com

  4. #4
    Any large site use nginx with php ?

  5. #5
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    I also suggest running the test without the client on the same network.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  6. #6
    Join Date
    Jun 2009
    Posts
    30
    Quote Originally Posted by plumsauce View Post
    Please try the test over again with the client running on a separate machine. Try not to use ab as it is known to suck resources like a sponge. The apache developers themselves no longer use it for benchmarking because of that reason. An alternative is siege.

    Furthermore, in addition to the workload, disclosure of the network and server hardware is a must before any benchmark can be taken seriously.
    Thanks for the siege tip, will verify the test results!

    About testing from separate machine: I cannot do that as machine is already collocated and only has single 100Mbit connection. The link would be saturated in an instant.

    Hardware disclosure: it is all there, in the second subsection, HP DL380 G5 server, or is it something specific that you are missing?

    Again, thanks for the tips!

    b.

  7. #7
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    "I cannot do that as machine is already collocated and only has single 100Mbit connection. The link would be saturated in an instant."

    No it would not using apache benchmark. Apache benchmark does not download images. I benchmark things every day, this is not something to worry about.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  8. #8
    Join Date
    Jun 2009
    Posts
    30
    Quote Originally Posted by Steven View Post
    No it would not using apache benchmark. Apache benchmark does not download images. I benchmark things every day, this is not something to worry about.
    True for small files and application benchmarks. But not for 100KB.txt and 1MB.txt benchmark (static file serving); they would saturate 1Gbps ethernet quickly. Heck, they would saturate 10Gbps ethernet.

    How? Take a look at the results, let's say 1MB.txt at 32 concurrent clients. The result for nginx is around 1200 requests per second. When you multiply this with the size of a single file (1MB, we neglect the TCP and HTTP headers size), that gives us roughly 1200MB/s throughput. Mind that here we use bytes, not bits.

    On the other hand, 1Gb/s ethernet uses BITS per second to describe throughput. When we divide it by 8, we get BYTES per second, which is 125MB/s.

    With the capability to serve files with 1200 MB/s the ethernet link with capacity 125 MB/s (1Gbps) is definitely saturated.

    b.

    PS: The only possible use I see for using another machine is when benchmarking small file serving performance. There you usually note that cpu usage of benchmarking program is greater than that of a http server.

Similar Threads

  1. Nginx as Apache proxy for static content -- need configuration
    By Pierrepont in forum Hosting Security and Technology
    Replies: 12
    Last Post: 11-19-2009, 05:22 PM
  2. nginx works with apache, but...
    By surfmanjoe in forum Hosting Security and Technology
    Replies: 1
    Last Post: 08-14-2008, 12:51 AM
  3. Cpanel + Apache + Nginx proxy
    By dtredwell in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 06-05-2007, 04:19 PM
  4. Apache with mod_php AND phpsuexec
    By giggsey in forum Hosting Security and Technology
    Replies: 7
    Last Post: 12-22-2005, 03:40 AM
  5. mod_php: Not enough security
    By flatface in forum Hosting Security and Technology
    Replies: 25
    Last Post: 04-29-2005, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •