Welcome! Log In Create A New Profile

Advanced

Re: Problem with large static files

Maxim Dounin
December 19, 2011 03:46PM
Hello!

On Mon, Dec 19, 2011 at 01:22:15PM -0500, etrader wrote:

> I have a strange problem with slow load of relatively large files. On a
> domain without proxy (designed for serving static files), the request
> time (as monitored by access log $request_time) for an simple jpg image
> file of 5KB is 0.000s (seems to be shorter than 1ms). Thus, one expect
> to load an image file of 15KB within 3ms, but surprisingly it takes
> about 600ms. A static file of 15KB is not big at all; but there should
> be a threshold which leads to this slow down upon slightly increasing
> the file size.

The $request_time of 0.000s isn't something real. Instead, it
means that nginx wasn't going through event loop while processing
the request. It was able to read the request from client, read
data from disk and send all data to socket buffer without
overflowing it. As nginx only updates it's idea about current
time once per event loop iteration, the above results in
$request_time of 0.000s in logs. Real time spent may
significantly differ if you are disk-bound and reading from disk
blocks for a long time (and you aren't using AIO).

Try looking into your disk subsystem stats, most likely it will
explain things.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with large static files

etrader December 19, 2011 01:22PM

Re: Problem with large static files

Maxim Dounin December 19, 2011 03:46PM

Re: Problem with large static files

etrader December 20, 2011 01:01AM

Re: Problem with large static files

Brian Akins December 21, 2011 10:08AM

Re: Problem with large static files

etrader December 26, 2011 03:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready