# Nginx Response Timing Range

**URL:** <https://www.ruby-forum.com/t/nginx-response-timing-range/225184>\
**Category:** NGINX\
**Created:** [December 19, 2012, 1:09pm UTC](https://www.ruby-forum.com/t/nginx-response-timing-range/225184 "2012-12-19T13:09:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 19, 2012, 1:09pm UTC](https://www.ruby-forum.com/t/nginx-response-timing-range/225184/1 "2012-12-19T13:09:27Z")

</div>

1. To test the stability of my Nginx installation, I use a load  
generator on  
a static\_30K.html page of 30KB.  
I added $response\_time to my log file and generated 100 threads x 10  
loops  
of static\_30K.html  
My top show load of 0.01

2. I sorted the timings of the log file in a spreadsheet.  
There are 1,000 entries. timing range from 0.000 (600 entries) to max of  
0.944 sec

3. The range is on the high side especially the Upper numbers consider  
my  
server is no load and it is only one static file

4. Can advise what I can focused to tune on Nginx and even OS

5. I am on the latest developer release on Nginx 1.3.9 running php5-fpm  
Mysql on Ubuntu Precise.  
My CPU is 4 core with 2GB RAM with FAST SSD

6. My Nginx Config are shown below.

## nginx.conf

user www-data;  
worker\_processes 2;  
worker\_rlimit\_nofile 10000;

error\_log /var/log/nginx/error.log;  
pid /var/run/nginx.pid;

events {  
worker\_connections 2048;  
}

http {  
include /etc/nginx/mime.types;  
default\_type application/octet-stream;

```
access_log /var/log/nginx/access.log;

sendfile on;
tcp_nopush on;
tcp_nodelay on;

keepalive_timeout 60;
server_tokens off;

gzip on;
gzip_disable "msie6";
gzip_buffers 16 8k;
gzip_comp_level 9;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml

```

application/xml application/xml+rss text/javascript;

```
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/default;

```

}

## default

log\_format combined\_withtime\_format '$remote\_addr $request\_time  
$remote\_user  
[$time\_local] ’  
'“$request” $status $body\_bytes\_sent ’  
‘“$http\_referer” “$http\_user\_agent”’;

server {  
server\_name [XXXXXXX.org](http://XXXXXXX.org);  
rewrite ^/(.\*) [1 Asshole, 4 Fingers, 18 Years – Adult Cam Tube](http://www.XXXXXXX.org/$1) permanent;  
}

server {  
server\_name [www.XXXXXXX.org](http://www.XXXXXXX.org);

access\_log /var/log/nginx/access.log combined\_withtime\_format;  
error\_log /var/log/nginx/error.log ;  
add\_header ‘X-UA-Compatible’ ‘IE=edge’;

location ~ /. {  
deny all;  
}

location / {  
root /var/www;  
index index.html index.htm index.php;

}  
}

Many Thans

Posted at Nginx Forum:

> **[Nginx Response Timing Range](https://forum.nginx.org/read.php?2,234201,234201#msg-234201)**
>
> 1. To test the stability of my Nginx installation, I use a load generator on a static\_30K.html page of 30KB. I added $response\_time to my log file and generated 100 threads x 10 loops of static\_30K.html My top show load of 0.01 2. I sorted the...
