Search the web
Sign In
New User? Sign Up
exceptional-performance · Exceptional Performance
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
'Waiting for server response' and flush()   Message List  
Reply | Forward Message #1293 of 1315 |
Re: 'Waiting for server response' and flush()

Thanks for your response, Pat.

I tried running a test of that sort some days ago, but for some odd reason my
site redirected to a login page.

The same thing happens with webpagetest.org - odd, that, since the site is
supposed to be viewable by anyone.

(As an aside I hope that doesn't happen to everyone who visits: if I log out and
then navigate to the site with a cleared cache, I get the front page that I
expect.)

The 'time to first byte' in the Summary was a stonking 5.3 seconds for the
front page the first time I ran that test: the DNS lookup and connection time
were normal (66 and 88 msec respectively).

There are some odd things that happen in the 'detailed' pane in the request
trace: (the URL sought is http://www.marketmentat.com )

(1) http://www.marketmentat.com - TTFB 2.02sec
(2) http://www.marketmentat.com/ - offset 2.34sec, TTFB 2.27sec
(3) [login redirect URL] - offset 4.77s TTFB 5.01

If I use http://www.marketmentat.com/ (add trailing slash), it becomes

(1) http://www.marketmentat.com/ - TTFB 1.19sec
(2) login redirect URL - offset 1.37sec, TTFB 1.20sec

I find it staggering that the trailing slash makes such a difference.

Job 1 is obviously figuring out why the redirect to the login page occurs. The
'start offset' of the login page is 4.77sec, so I am thinking that if the
redirect was not in force there would be at least some savings.

Cheerio


GT

--- In exceptional-performance@yahoogroups.com, "Patrick Meenan" <PatMeenan@...>
wrote:
>
> I did a bulk analysis a few months ago at all of the tests that had been
> submitted to WebPagetest <http://www.webpagetest.org/> here (24k unique
> urls): http://www.webpagetest.org/forums/showthread.php?tid=22
>
>
>
> One of the stats I looked at was the Time To First Byte (which as I measure
> it includes the DNS, initial socket connect and time for the server to send
> the first bit of response back).
>
>
>
> The knee in the curve for TTFB is around 2 seconds with 90% of the sites
> coming back faster than that (76% of the sites came back under 500ms) - and
> this is including 50ms * 3 of Round-Trip-Time for last-mile network latency.
> 3 seconds would be around the 95th percentile, 4 at the 96th percentile and
> 9 seconds at the 98th percentile (with higher being worse in this case - 98%
> of sites tested were faster).
>
>
>
> If you run a test on WebPagetest <http://www.webpagetest.org/> you can
> pretty much figure out what the RTT to the server is by looking at the time
> for the socket connect on the base page (this would be the PING time). The
> VAST majority of your time is going to be coming from server resources -
> unless your hosting company is in the moon J
>
>
>
> Thanks,
>
>
>
> -Pat
>
>
>
> From: exceptional-performance@yahoogroups.com
> [mailto:exceptional-performance@yahoogroups.com] On Behalf Of GT
> Sent: Thursday, November 05, 2009 4:56 PM
> To: exceptional-performance@yahoogroups.com
> Subject: [exceptional-performance] 'Waiting for server response' and flush()
>
>
>
>
>
> Hey y'all
>
> My site's performance has benefited greatly from YSlow and the various
> hints: the next step for me is to try to combine images into sprites... I
> was staggered to see how much slack there is in loading the underlying
> images that are so fundamental to even the most basic website.
>
> FireBug/YSlow has also shown me is that not enough is made of the benefits
> of a PHP 'flush()' directive at the first sensible opportunity; this is easy
> to overlook but has significant benefits.
>
> One thing that I have noticed though, is that I get significant (>3 or 4
> seconds - and up to NINE seconds) "Waiting for server response" on the
> initial GET of any page on my server.
>
> The issue is (as I would expect) not as bad on my local clone of the site,
> but it's still upwards of 2-3sec and it easily the largest component in the
> delay between hitting the URL and getting a 'navigable' page.
>
> It would be terrific if someone could prepare a little guide as to what to
> expect as a 'normal' server response time - ow it relates (if at all) to
> PING and TRACERT times and how much is determined by server resources. After
> all, I can run a debugger and see how long the server takes to 'sticky-tape'
> the actual page together... and it's nowhere NEAR 3 seconds (it's more like
> 0.3) - so it's not an issue of the server making the browser wait 7 seconds
> while it preps the page.
>
> I tried using teh.Google (gasp!) to get some answers, but no joy.
>
> Cheerio
>
> GT
> Australia
>





Fri Nov 6, 2009 10:39 pm

transom1
Offline Offline
Send Email Send Email

Forward
Message #1293 of 1315 |
Expand Messages Author Sort by Date

Hey y'all My site's performance has benefited greatly from YSlow and the various hints: the next step for me is to try to combine images into sprites... I was...
GT
transom1
Offline Send Email
Nov 5, 2009
9:57 pm

I did a bulk analysis a few months ago at all of the tests that had been submitted to WebPagetest <http://www.webpagetest.org/> here (24k unique urls):...
Patrick Meenan
pmeenan
Offline Send Email
Nov 5, 2009
10:11 pm

Thanks for your response, Pat. I tried running a test of that sort some days ago, but for some odd reason my site redirected to a login page. The same thing...
GT
transom1
Offline Send Email
Nov 6, 2009
10:40 pm

Hi again, Interesting development (and solution to the strange login redirect). It turned out that a plugin (which shall remaion nameless) was causing the...
GT
transom1
Offline Send Email
Nov 8, 2009
11:57 pm

keep-alive can be good or bad depending on your situation. This is the apache doc about it: http://httpd.apache.org/docs/1.3/keepalive.html The idea is that...
Philip Tellis
philiptellis
Offline Send Email
Nov 9, 2009
10:19 pm

The browsers will all make multiple connections with persistent connections enabled. If everything is served from a single domain (like with most sites on...
Patrick Meenan
pmeenan
Offline Send Email
Nov 10, 2009
12:10 am

Thanks for the info, Pat and Philip. Oddly enough, when I contacted my webhost they maintained that keep-alive is enabled globally on the server and that...
GT
transom1
Offline Send Email
Nov 13, 2009
8:38 pm

Oh, and one final thing: I reverted one page on the site (a 'Stock Workbench') to a non-optimised version: reverted sprited images to individual images, left...
GT
transom1
Offline Send Email
Nov 13, 2009
9:17 pm

Dreamhost (the hosting provider I use for WebPagetest) has persistent connections enabled in their stock apache config. You can break it using htaccess which...
Patrick Meenan
pmeenan
Offline Send Email
Nov 13, 2009
9:29 pm

Funnily enough, I was with DreamHost until a massive screwup/outage/outrage in 2007 (I think it was 2007) whereupon I switched to HostUpon - at $110 for 2...
GT
transom1
Offline Send Email
Nov 14, 2009
6:59 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help