Welcome! Log In Create A New Profile

Advanced

Nginx Benchmark Serving Static Image Timeouts

Anonymous User
April 18, 2012 12:39AM
Hello, I am benchmarking nginx, serving a static image (png file which is 6kb) with http://blitz.io. I am sending 250 requests a second for 60 seconds. When I run the benchmark approximately 15% of the requests are taking longer than 2 seconds, which is completely unacceptable. Nginx should be able to fly at this, even though its a lot of requests. At first I thought that I must be maxing out the network interface, but I looked and only pushing 10-12mbps. Any ideas what could be causing this?

Here is the performance directives that I have modified in nginx:

worker_processes 4;

events {
worker_connections 2048;
}

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 30;
gzip on;
gzip_proxied any;
gzip_comp_level 3;
gzip_disable "MSIE [1-6].(?!.*SV1)";
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
client_max_body_size 16M;

location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
Subject Author Posted

Nginx Benchmark Serving Static Image Timeouts

Anonymous User April 18, 2012 12:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready