how much Active connections on nginx for window?
afen
nginx-forum at nginx.us
Tue Jun 23 15:34:38 MSD 2009
Igor Sysoev Wrote:
-------------------------------------------------------
> On Mon, Jun 22, 2009 at 06:30:18PM +0300, zepolen
> wrote:
>
> > On Mon, Jun 22, 2009 at 6:56 AM, afen wrote:
> > > i stress test nginx on window2003,but the
> action connections never in excess of 512?$B!#
> > > why?my config:
> > >
> > > worker_processes 1;
> > >
> > > events {
> > > worker_connections 1024;
> > > }
> > >
> > > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,3233,3233#msg-32
> 33
> > >
> > > host has failed to respond) while connecting
> to upstream, client: 192.168.1.100, server:
> localhost, request: "GET /index.php HTTP/1.1",
> upstream: "fastcgi://127.0.0.1:9000", host:
> "localhost"
> >
> > Probably because you use two connections when
> proxying - one for
> > client connection - one for backend.
>
> Yes, you are right.
>
how can i do?this is my config
worker_processes 1;
events {
worker_connections 10240;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
location / {
root /NPMserv/www;
index index.html index.htm index.php;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ .*\.php?$ {
root /NPMserv/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /NPMserv/www$fastcgi_script_name;
include fastcgi_params;
}
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3233,3286#msg-3286
More information about the nginx
mailing list