why so slow?

This is a discussion on why so slow? within the PHP General forums, part of the PHP Programming Forums category; Could you think of why my site loads so slowly? http://www.squareinch.net/home.php...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-01-2006
Mel
 
Posts: n/a
Default why so slow?

Could you think of why my site loads so slowly?

http://www.squareinch.net/home.php
Reply With Quote
  #2 (permalink)  
Old 11-01-2006
Robert Cummings
 
Posts: n/a
Default Re: [PHP] why so slow?

On Wed, 2006-11-01 at 00:55 -0800, Mel wrote:
> Could you think of why my site loads so slowly?
>
> http://www.squareinch.net/home.php


That's a bit like asking us to read your mind. We'd only be guessing
since we can't see your code and you haven't told us what your site
does.

What I can say is that it's probably not reverse DNS since my first page
load was about 8 seconds, my second was about .5 seconds, and my third
was about 6 seconds.

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
Reply With Quote
  #3 (permalink)  
Old 11-01-2006
Mel
 
Posts: n/a
Default Re: [PHP] why so slow?

This is my first php site and I have no idea where to look for a reason!

On Nov 1, 2006, at 1:07 AM, Frank Arensmeier wrote:

> Bad day?
>
> /frank
>
> 1 nov 2006 kl. 09.55 skrev Mel:
>
>> Could you think of why my site loads so slowly?
>>
>> http://www.squareinch.net/home.php

>

Reply With Quote
  #4 (permalink)  
Old 11-01-2006
Frank Arensmeier
 
Posts: n/a
Default Re: [PHP] why so slow?

Maybe it's the 18 k of JavaScript from Google that slows your page
down? Why not load this script locally from your server?

/frank

1 nov 2006 kl. 10.26 skrev Mel:

> So do you mean that's it is ok and not slow?
>
> On Nov 1, 2006, at 1:09 AM, Robert Cummings wrote:
>
>> On Wed, 2006-11-01 at 00:55 -0800, Mel wrote:
>>> Could you think of why my site loads so slowly?
>>>
>>> http://www.squareinch.net/home.php

>>
>> That's a bit like asking us to read your mind. We'd only be guessing
>> since we can't see your code and you haven't told us what your site
>> does.
>>
>> What I can say is that it's probably not reverse DNS since my
>> first page
>> load was about 8 seconds, my second was about .5 seconds, and my
>> third
>> was about 6 seconds.
>>
>> Cheers,
>> Rob.
>> --
>> .------------------------------------------------------------.
>> | InterJinn Application Framework - http://www.interjinn.com |
>> :------------------------------------------------------------:
>> | An application and templating framework for PHP. Boasting |
>> | a powerful, scalable system for accessing system services |
>> | such as forms, properties, sessions, and caches. InterJinn |
>> | also provides an extremely flexible architecture for |
>> | creating re-usable components quickly and easily. |
>> `------------------------------------------------------------'
>>

>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply With Quote
  #5 (permalink)  
Old 11-01-2006
Frank Arensmeier
 
Posts: n/a
Default Re: [PHP] why so slow?

My suggestion: stripp out the JS from Google. Test you page again.
Should the page load as slowly as before, it might have to do with
PHP. Then, give us more details about your script)

/frank

1 nov 2006 kl. 10.53 skrev Robert Cummings:

> On Wed, 2006-11-01 at 01:26 -0800, Mel wrote:
>> So do you mean that's it is ok and not slow?

>
> I'm saying we can't ascertain why it's so slow since we don't have
> enough information.
>
> Cheers,
> Rob.
> --
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting |
> | a powerful, scalable system for accessing system services |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for |
> | creating re-usable components quickly and easily. |
> `------------------------------------------------------------'
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply With Quote
  #6 (permalink)  
Old 11-01-2006
Mel
 
Posts: n/a
Default Re: [PHP] why so slow?

I took the Google stuff out. I can't tell if it's faster now.
I don't think it's very consistent. Sometimes it loads pretty fast
and sometimes it gets stuck in the right corner!
I don't think I have seen this happen with any other site!

On Nov 1, 2006, at 2:12 AM, Frank Arensmeier wrote:

> My suggestion: stripp out the JS from Google. Test you page again.
> Should the page load as slowly as before, it might have to do with
> PHP. Then, give us more details about your script)
>
> /frank
>
> 1 nov 2006 kl. 10.53 skrev Robert Cummings:
>
>> On Wed, 2006-11-01 at 01:26 -0800, Mel wrote:
>>> So do you mean that's it is ok and not slow?

>>
>> I'm saying we can't ascertain why it's so slow since we don't have
>> enough information.
>>
>> Cheers,
>> Rob.
>> --
>> .------------------------------------------------------------.
>> | InterJinn Application Framework - http://www.interjinn.com |
>> :------------------------------------------------------------:
>> | An application and templating framework for PHP. Boasting |
>> | a powerful, scalable system for accessing system services |
>> | such as forms, properties, sessions, and caches. InterJinn |
>> | also provides an extremely flexible architecture for |
>> | creating re-usable components quickly and easily. |
>> `------------------------------------------------------------'
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

>

Reply With Quote
  #7 (permalink)  
Old 11-01-2006
Jürgen Wind
 
Posts: n/a
Default Re: [PHP] why so slow?




Frank Arensmeier wrote:
>
> My suggestion: stripp out the JS from Google. Test you page again.
> Should the page load as slowly as before, it might have to do with
> PHP. Then, give us more details about your script)
>
> /frank
>
> 1 nov 2006 kl. 10.53 skrev Robert Cummings:
>
>> On Wed, 2006-11-01 at 01:26 -0800, Mel wrote:
>>> So do you mean that's it is ok and not slow?

>>
>> I'm saying we can't ascertain why it's so slow since we don't have
>> enough information.
>>
>> Cheers,
>> Rob.
>> --
>> .------------------------------------------------------------.
>> | InterJinn Application Framework - http://www.interjinn.com |
>> :------------------------------------------------------------:
>> | An application and templating framework for PHP. Boasting |
>> | a powerful, scalable system for accessing system services |
>> | such as forms, properties, sessions, and caches. InterJinn |
>> | also provides an extremely flexible architecture for |
>> | creating re-usable components quickly and easily. |
>> `------------------------------------------------------------'
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

many sites (including nabble.com, which i use to read and post here)
load faster since i have "127.0.0.1 www.google-analytics.com" in my hosts
file
to block that urchin.js spyware.

--
View this message in context: http://www.nabble.com/why-so-slow--t....html#a7111082
Sent from the PHP - General mailing list archive at Nabble.com.
Reply With Quote
  #8 (permalink)  
Old 11-01-2006
clive
 
Posts: n/a
Default Re: [BULK] [PHP] why so slow?

Mel wrote:
> Could you think of why my site loads so slowly?
>
> http://www.squareinch.net/home.php


perhaps its the server that its hosted on, is it a dedicated
machine,shared or a virtual private server.
It could also be the bandwidth the server has,
It could be the route taken to get to the machine.
It could even be the weather (If anyone knows anything about a certain
ISP in South Africa you'll know what I mean)

In poor old bandwidth starved S.Africa your page takes 10 - 14 seconds
to load (used the hippopotamus counting technique i.e 1 hippopotamus, 2
hippopotamus etc, yes yes very African I know), then again the weather
affects our bandwidth and then again google.com loads with a second so I
reckon its something else.

Can you check the server loads and perhaps find out what sort of
connection the box has?

Clive
Reply With Quote
  #9 (permalink)  
Old 11-01-2006
Dave Goodchild
 
Posts: n/a
Default Re: [PHP] Re: [BULK] [PHP] why so slow?

The guys are right, there are many variables that could be affecting this.
However, get rid of those tags before <body> and clean up your code - it
does not validate as html 4.01. The DOCTYPE should be the very first thing
in the page. Once you have amended these, revalidate (validator.w3c.org).
Trust me, these issues will be much easier to solve given clean code and
points of error are easier to locate. Reload when the page is clean. It may
not be the html, but it is better to start on the right foot.

Reply With Quote
  #10 (permalink)  
Old 11-01-2006
Richard Lynch
 
Posts: n/a
Default Re: [PHP] why so slow?

On Wed, November 1, 2006 2:55 am, Mel wrote:
> Could you think of why my site loads so slowly?
>
> http://www.squareinch.net/home.php


Install Firefox and an HTML Validator.

Look at your "View Source"

Your <!doctype isn't even the first line! :-)

That urchintracker() stuff will probably kill performance too, and I
doubt they provide anything you can't get from Analog or Webalizer or
just rolling your own PHP (or some combo of all that).

Ten successive tries of:
time wget http://www.squareinch.net/home.php
were all over the map in timings.

From respectable 0.1s to 10s with no discernible pattern.

I'd suggest you try timing it with a static HTML file (.htm) and no
PHP in the picture to eliminate PHP as the culprit.

Then you'd take this off to the Apache list, after searching their
bugs database for something similar, assuming your header is correct:
Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) PHP/5.1.2

Or, if it is PHP 5.1.2 which is messing you up, then try
upgrading/downgrading to see if that helps.

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0