Nginx TCP Delays

Khalid Shaikh khalid.j.shaikh at gmail.com
Mon Sep 21 11:40:29 MSD 2009


Overall seems like 3GB of RAM, with a very near 0 load.

I get the delay in one out of 10 requests.  I'd love to help someone SSH and
look at it!

model name      : Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz
s

 00:39:34 up 16:41,  1 user,  load average: 0.40, 0.60, 0.70

Tasks: 132 total,   1 running, 131 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.0%us,  1.8%sy,  0.0%ni, 90.6%id,  1.8%wa,  0.0%hi,  4.8%si,
 0.0%st
Mem:   3099008k total,  2970148k used,   128860k free,   207052k buffers
Swap:  2650684k total,       64k used,  2650620k free,  2385632k cached


On Mon, Sep 21, 2009 at 12:32 AM, Brian Henson <bhenson at xenocomp.com> wrote:

>  What are the specs of this machine?  What is your load during this time?
>
>
>
> *From:* owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] *On Behalf Of
> *Khalid Shaikh
> *Sent:* Sunday, September 20, 2009 11:47 PM
> *To:* nginx at sysoev.ru
> *Subject:* Nginx TCP Delays
>
>
>
> We are using Nginx on this web server.  Look at the # of reading & writing
> requests.  a curl http://localhost/test.html can take up to 45 seconds.
>
>
>
> Can anyone help?
>
>
>
> Using telnet I can see that basically the Nginx server is taking time to
> get to the TCP connection that I initiated.
>
>
>
> This happens only during peak times of the web site.
>
>
>
> Active connections: 8467
>
> server accepts handled requests
>
>  380771 380771 835836
>
> Reading: 75 Writing: 1497 Waiting: 6895
>
> http://67.159.60.59/status      45.03 seconds
>
>
>
> I've attached the nginx.conf
>
>
>
> user www-data www-data;
>
> worker_processes 32;
>
>
>
> error_log  /var/www/log/nginx_error.log;
>
> pid        /var/run/nginx.pid;
>
>
>
> events {
>
>   worker_connections  10024;
>
> }
>
>
>
> http {
>
>   include       /etc/nginx/mime.types;
>
>   default_type  application/octet-stream;
>
>
>
>   sendfile         on;
>
>   tcp_nopush       on;
>
>   tcp_nodelay      on;
>
>
>
>   server {
>
>     listen       80;
>
>     server_name  xs.to;
>
>     root   /var/www/xs;
>
>     error_page  404 index.php;
>
>     error_page   500 502 503 504  index.php;
>
>     access_log off;
>
>
>
>     location / {
>
>       root   /var/www/xs;
>
>       index  index.php default.php;
>
>       rewrite  ^/albums/(.*)$  /albums/showalbum.php?$1?  last;
>
>       rewrite  ^/community/(.*)$  /community.php?$1?  last;
>
>       error_page  404 index.php;
>
>       error_page   500 502 503 504  index.php;
>
>     }
>
>
>
>     location /status {
>
>       stub_status on;
>
>       access_log off;
>
>     }
>
>
>
>     location ~ .php$ {
>
>       fastcgi_pass 127.0.0.1:8888;
>
>       fastcgi_index index.php;
>
>       fastcgi_intercept_errors on;
>
>       error_page  404 index.php;
>
>       error_page   500 502 503 504  index.php;
>
>       fastcgi_param  SCRIPT_FILENAME    /var/www/xs/$fastcgi_script_name;
>
>       include /etc/nginx/fastcgi_params;
>
>     }
>
>
>
>     location ~* ^.+.(jpg|jpeg|gif|tiff|png|bmp|ico|fav|html)$ {
>
>       access_log        off;
>
>       expires           30d;
>
>     }
>
>   }
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090921/2dff16a0/attachment.html>


More information about the nginx mailing list