Nginx windows + apache backend: slow php files in nginx

Hi there,

I started to test nginx windows + apache/php backend on a Win7 x64
machine.

I haven’t discovered why this happenning:

Test 1 - ab -n 300 -c 20 http://127.0.0.1:80/hello.php (nginx
listen port 80)
Requests per second: 106.66 [#/sec] (mean)

Test 2 - ab -n 300 -c 20 http://127.0.0.1:8080/hello.php
(apache+mod_php listen port 8080)
Requests per second: 967.69 [#/sec] (mean)

My conf file:
location / {

      ## Apache / PHP

      proxy_pass   http://127.0.0.1:8080;
      proxy_redirect          off;
      proxy_set_header        Host            $host;
      ## For GEOIP  + RPAF (apache modules)
      proxy_set_header        X-Real-IP       $remote_addr;
      proxy_set_header        X-Forwarded-For

$proxy_add_x_forwarded_for;
client_max_body_size 2m;
client_body_buffer_size 1024k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffering on;
proxy_buffers 513 32k;
proxy_buffer_size 16m;
proxy_busy_buffers_size 16m;
}

Any thoughts about why Apache gives 10x the speed of Nginx?

Thanks
Ricardo

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,219861,219861#msg-219861

This might apply to you:
http://forum.nginx.org/read.php?2,219822,219822#msg-219822

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,219861,219864#msg-219864

Thanks Martin (Ensiferous).

So you think that the lack of porting some features gives this strange
result on Windows to proxy to Apache? Cache maybe.

The benchmark to serve static files is not affected as much (less 10%
only).

Do you have suggestions?

Thanks
Ricardo

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,219861,219866#msg-219866

Anybody can give an hint?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,219861,220187#msg-220187

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs