

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
11 messages in ru.sysoev.nginx0.5.7 waiting connections| From | Sent On | Attachments |
|---|---|---|
| Jan Ślusarczyk | Jan 18, 2007 4:26 pm | |
| Igor Sysoev | Jan 19, 2007 8:54 am | |
| Jan Ślusarczyk | Jan 19, 2007 9:26 am | |
| Igor Sysoev | Jan 19, 2007 10:49 am | |
| Jan Ślusarczyk | Jan 20, 2007 3:11 am | |
| Igor Sysoev | Jan 20, 2007 3:32 am | |
| Jan Ślusarczyk | Jan 20, 2007 3:47 am | |
| Igor Sysoev | Jan 20, 2007 4:08 am | |
| Jan Ślusarczyk | Jan 20, 2007 7:32 am | |
| Jan Ślusarczyk | Jan 21, 2007 2:02 am | |
| Igor Sysoev | Jan 21, 2007 2:13 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | 0.5.7 waiting connections | Actions... |
|---|---|---|
| From: | Jan Ślusarczyk (jan....@public.gmane.org) | |
| Date: | Jan 18, 2007 4:26:57 pm | |
| List: | ru.sysoev.nginx | |
Hi,
I am currently using nginx to serve static files and proxy the rest of requests (mostly php) to apache on another private IP on the same machine. Everything seems to be running great but one thing. The number of "waiting" connections (watched by status_stub) is constantly rising. The server is not very busy with approx 20 req/sec and the waiting connections numbers goes up to 1.800 connections in approx. 20 hours. I have browsed the archives searching for clues and found the undocumented directive reset_timedout_connection. I have turned this on - but it didn't help. My configuration is below.
The server is dual Xeon HT, 4GB ram, Linux. Apache behind the proxy is 2.0.53 with mod_php running VBulletin and Typo3.
Any help and hints will be very appreciated. Cheers Jan Ślusarczyk
Here's my setup:
worker_processes 4;
error_log /var/log/nginx/error.log;
events { worker_connections 1024; }
http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 15; reset_timedout_connection on; tcp_nodelay on; server_names_hash_bucket_size 64;
upstream apache { server 192.168.3.189:80; }
gzip on; gzip_min_length 1100; gzip_buffers 4 8k; gzip_types text/plain;
include /etc/nginx/vhosts/*.conf; }
proxy.conf:
proxy_redirect off; proxy_buffering off; #+
proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sample vhost from include:
server { listen 192.168.3.89:80; server_name puszcza.dobrestrony.pl; access_log /var/log/nginx/puszcza.dobrestrony.pl.access.log combined; # statyka location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc| xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov)$ { root /var/www/hosts/puszcza.dobrestrony.pl; expires 1d; } location / { proxy_pass http://apache; include /etc/nginx/proxy.conf; } }







