Welcome! Log In Create A New Profile

Advanced

Re: Static files bad loading time

Francis Daly
May 27, 2015 05:56PM
On Thu, May 07, 2015 at 01:56:02PM -0400, grigory wrote:

Hi there,

> > Can you tell from nginx logs whether the slowness is due to
> > slow-read-from-disk, or slow-write-to-client, or something else?
>
> Could you please tell me how to check this out?
> My nginx logs do not contain this sort of information.

I'm actually not sure how to go about that. Possibly there will be
details in the debug log? But you do not want to run the debug log on
a busy system that only sporadically shows the problem.

Possibly a lighter way of trying to identify a pattern is to include
$request_time in you normal access_log.

Then when you see the slowness, you can identify the request in the logs,
and see is there any pattern that way -- does it always and only happen
when there are more than 100 other concurrent requests; or at that
start of a minute when something else on the system is busy starting;
or something that is common to these requests and not to others.

(Or maybe the common feature is not something that nginx can see.)

> > If you make the request from the machine itself, so network issues should
> > be minor, does it still show sometimes being slow?
>
> When I make request from machine itself, the image loads pretty fast.

If that remains true when you make the request a hundred times, that
suggests that the problem is outside of nginx's control, in the system
networking or (more likely) the network outside the nginx server.

Good luck with it,

f
--
Francis Daly francis@daoine.org

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

Static files bad loading time

grigory April 25, 2015 02:01PM

Re: Static files bad loading time

grigory April 25, 2015 02:05PM

Re: Static files bad loading time

Francis Daly April 25, 2015 06:40PM

Re: Static files bad loading time

grigory April 26, 2015 06:11AM

Re: Static files bad loading time

grigory April 27, 2015 11:59AM

Re: Static files bad loading time

Francis Daly April 30, 2015 01:16PM

Re: Static files bad loading time

grigory May 07, 2015 01:56PM

Re: Static files bad loading time

shahzaib1232 May 07, 2015 02:30PM

Re: Static files bad loading time

Valentin V. Bartenev May 08, 2015 07:44AM

Re: Static files bad loading time

shahzaib1232 May 08, 2015 09:08AM

Re: Static files bad loading time

Valentin V. Bartenev May 08, 2015 09:20AM

Re: Static files bad loading time

shahzaib1232 May 08, 2015 10:46AM

Re: Static files bad loading time

Francis Daly May 27, 2015 05:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
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