We are using Nginx on this web server. Look at the # of reading & writing requests. a curl <a href="http://localhost/test.html">http://localhost/test.html</a> can take up to 45 seconds.<div><br></div><div>Can anyone help?</div>
<div><br></div><div>Using telnet I can see that basically the Nginx server is taking time to get to the TCP connection that I initiated.</div><div><br></div><div>This happens only during peak times of the web site.<br><div>
<br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Active connections: 8467</div><div>server accepts handled requests</div><div> 380771 380771 835836</div>
<div>Reading: 75 Writing: 1497 Waiting: 6895</div><div><a href="http://67.159.60.59/status" target="_blank" style="color: rgb(42, 93, 176); ">http://67.159.60.59/status</a> 45.03 seconds</div><div><br></div><div>I've attached the nginx.conf</div>
<div><br></div><div><div>user www-data www-data;</div><div>worker_processes 32;</div><div><br></div><div>error_log /var/www/log/nginx_error.log;</div><div>pid /var/run/nginx.pid;</div><div><br></div><div>events {</div>
<div> worker_connections 10024;</div><div>}</div><div><br></div><div>http {</div><div> include /etc/nginx/mime.types;</div><div> default_type application/octet-stream;</div><div><br></div><div> sendfile on;</div>
<div> tcp_nopush on;</div><div> tcp_nodelay on;</div><div><br></div></div><div><div> server {</div><div> listen 80;</div><div> server_name <a href="http://xs.to">xs.to</a>;</div><div> root /var/www/xs;</div>
<div> error_page 404 index.php;</div><div> error_page 500 502 503 504 index.php;</div><div> access_log off;</div><div><br></div><div> location / {</div><div> root /var/www/xs;</div><div> index index.php default.php;</div>
<div> rewrite ^/albums/(.*)$ /albums/showalbum.php?$1? last;</div><div> rewrite ^/community/(.*)$ /community.php?$1? last;</div><div> error_page 404 index.php;</div><div> error_page 500 502 503 504 index.php;</div>
<div> }</div><div><br></div><div> location /status {</div><div> stub_status on;</div><div> access_log off;</div><div> }</div><div><br></div><div> location ~ .php$ {</div><div> fastcgi_pass <a href="http://127.0.0.1:8888">127.0.0.1:8888</a>;</div>
<div> fastcgi_index index.php;</div><div> fastcgi_intercept_errors on;</div><div> error_page 404 index.php;</div><div> error_page 500 502 503 504 index.php;</div><div> fastcgi_param SCRIPT_FILENAME /var/www/xs/$fastcgi_script_name;</div>
<div> include /etc/nginx/fastcgi_params;</div><div> }</div><div><br></div><div> location ~* ^.+.(jpg|jpeg|gif|tiff|png|bmp|ico|fav|html)$ {</div><div> access_log off;</div><div> expires 30d;</div>
<div> }</div><div> }</div><div><br></div></div></span></div></div>