On 06/27/2011 07:49 AM, hubert depesz lubaczewski wrote:
> Also - Based on nginx logs with times, I see that 4.0.1 is much slower than 
> 3.8.9
> rendering home page took usually 0.7s, now it's > 3s:

How many external FastCGI children are you running?  On the first
request each child processes, it needs time to minify the JS and CSS
assets.  Every request after the first for a child process will be much
much quicker.  If you have a lot of children, you may need to hit the RT
server at least that many times until you get a child that already
processed the JS and CSS.  In a normal production system, this isn't a
problem.

> some_ip - - [27/Jun/2011:13:18:48 +0200] "GET / HTTP/1.1" 200 1778 "-" 
> "Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0a2) Gecko/20110620 
> Firefox/6.0a2" 3.451s
> some_ip - - [27/Jun/2011:13:29:19 +0200] "GET / HTTP/1.1" 200 4032 "-" 
> "Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0a2) Gecko/20110620 
> Firefox/6.0a2" 2.900s
> some_ip - - [27/Jun/2011:13:29:45 +0200] "GET / HTTP/1.1" 200 4030 
> "http://rt.depesz.com/Ticket/Display.html?id=1517"; "Mozilla/5.0 (X11; Linux 
> i686 on x86_64; rv:6.0a2) Gecko/20110620 Firefox/6.0a2" 3.549s
> some_ip - - [27/Jun/2011:13:33:10 +0200] "GET / HTTP/1.1" 200 4088 
> "http://rt.depesz.com/Ticket/Display.html?id=17472"; "Mozilla/5.0 (X11; Linux 
> i686 on x86_64; rv:6.0a2) Gecko/20110620 Firefox/6.0a2" 6.539s
> some_ip - - [27/Jun/2011:13:34:30 +0200] "GET / HTTP/1.1" 200 4032 
> "http://rt.depesz.com/"; "Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0a2) 
> Gecko/20110620 Firefox/6.0a2" 0.275s

See the line above?  It's super quick.  I bet you hit a FastCGI child
which had already minified the JS and CSS.

See also:
http://issues.bestpractical.com/Ticket/Display.html?id=17673;user=guest;pass=guest#txn-162017

Thomas

> some_ip - - [27/Jun/2011:13:35:41 +0200] "GET / HTTP/1.1" 200 4031 
> "http://rt.depesz.com/Ticket/Display.html?id=17588"; "Mozilla/5.0 (X11; Linux 
> i686 on x86_64; rv:6.0a2) Gecko/20110620 Firefox/6.0a2" 3.259s
> some_ip - - [27/Jun/2011:13:40:10 +0200] "GET / HTTP/1.1" 200 4030 "-" 
> "Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0a2) Gecko/20110620 
> Firefox/6.0a2" 3.500s

--------
2011 Training: http://bestpractical.com/services/training.html

Reply via email to