Site is taking a long long time to load.

Reply

Join Date: Apr 2009
Posts: 34
Reputation: coolmind259 is an unknown quantity at this point 
Solved Threads: 0
coolmind259 coolmind259 is offline Offline
Light Poster

Site is taking a long long time to load.

 
0
  #1
Jun 16th, 2009
Hi,

I have uploaded a web site on the server then I hav tested it on the browser but it is taking a lot of time to load its contents. I dont have anything heavy in the site, does anybody know any solution to overcome this problem??

Please reply.
Take care.
Coolmind
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 78
Reputation: navi17 is an unknown quantity at this point 
Solved Threads: 5
navi17 navi17 is offline Offline
Junior Poster in Training

Re: Site is taking a long long time to load.

 
0
  #2
Jun 16th, 2009
sometimes it happens when your mysql query goes in infinite loop.
carefully check all the queries.
Defeat the defeat before defeat defeats you.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 958
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 126
ardav's Avatar
ardav ardav is offline Offline
Posting Shark

Re: Site is taking a long long time to load.

 
0
  #3
Jun 16th, 2009
Do you have any js-based analytics or advertising etc.? These can really slow down sites - I had to remove some of them from mine.

Is the slow load experienced on every computer or on every browser?

Have you pruned the page to various stages of undress to see which component is causing the delay? As prev. mentioned,loops (especially nested loops) may be the cause of your woes.

Do you have hundreds of people viewing your site at any given time? Is your server up to the task?

You could time certain procedures with microtime(), to give you a list:

  1. $start = microtime(true);
  2.  
  3. //YOUR PROCEDURE e.g. loop
  4.  
  5. $end = microtime(true);
  6.  
  7. $elapsed = $end - $start;
  8.  
  9. echo "Procedure 1 = {$elapsed} seconds";
  10.  
  11. //repeat as necessary
Last edited by ardav; Jun 16th, 2009 at 12:47 pm. Reason: added bit of code - microtime()
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 340
Reputation: Josh Connerty is an unknown quantity at this point 
Solved Threads: 26
Josh Connerty's Avatar
Josh Connerty Josh Connerty is offline Offline
Posting Whiz

Re: Site is taking a long long time to load.

 
0
  #4
Jun 16th, 2009
What system is the website running on?

You can use the following commands to find this out:

  1. echo "Site Software: ".$_SERVER["SERVER_SOFTWARE"]."<br />";
  2. echo "Proccessors: ".$_SERVER["NUMBER_OF_PROCESSORS"];

If the proccessor returns something silly like 1 then that might be an issue (these things can take allot of proccessing) but this wouldn't be the main issue.

Does your site finish loading or does it take soo long you give up? If this is the case AND the site software is Windows IIS then it could mean you need to configure IIS to accept PHP extensions.
Posts should be like mini-skirts, long enough to cover enough, but not too long that you cover too much.

My Liveperson: http://liveperson.com/josh-connerty/
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 2
Reputation: AaliyahRoma is an unknown quantity at this point 
Solved Threads: 0
AaliyahRoma AaliyahRoma is offline Offline
Newbie Poster

Re: Site is taking a long long time to load.

 
0
  #5
Jun 16th, 2009
Be sure that all images, style .css files and .js files load fast. Add some code to your index.php file to see <URL SNIPPED>server-side page generation time. Loading time, data transferring speed and page generation time are different things.
Last edited by peter_budo; Jun 17th, 2009 at 4:11 am. Reason: Keep It Spam Free - Do not spam, advertise, plug your website, or engage in any other type of self promotion.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 34
Reputation: coolmind259 is an unknown quantity at this point 
Solved Threads: 0
coolmind259 coolmind259 is offline Offline
Light Poster

Re: Site is taking a long long time to load.

 
0
  #6
Sep 26th, 2009
Hi There,

I am using .htaccess file in my site. I have defined .htaccess rules for each file seprately, does this slow slow down the loading speed of the site??

Please reply
Coolmind
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 958
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 126
ardav's Avatar
ardav ardav is offline Offline
Posting Shark

Re: Site is taking a long long time to load.

 
0
  #7
Sep 26th, 2009
Have you tried renaming htaccess to something else and then testing the page? I notice you're not in any rush for this!
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 34
Reputation: coolmind259 is an unknown quantity at this point 
Solved Threads: 0
coolmind259 coolmind259 is offline Offline
Light Poster

Re: Site is taking a long long time to load.

 
0
  #8
Sep 26th, 2009
Hi Ardav,

Thank you for your help. I have tried renaming .htacess file to htaccess and I think the site is loading quick now. Actually my .htaccess file was hidden on my server.

I have just renamed .htaccess file to htaccess then upload on my server, any suggestion?

Thank you
Take care,
Coolnmind
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 958
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 126
ardav's Avatar
ardav ardav is offline Offline
Posting Shark

Re: Site is taking a long long time to load.

 
0
  #9
Sep 26th, 2009
Your .htaccess file may still be there if you've just uploaded another file called htaccess. I was thinking of renaming it to, say, htaccess.txt in situ, i.e. on the server in your FTP view. I don't know enough about htaccess to be able to advise you, but it seems like the obvious culprit if you've got nothing else in your files that could account for the slow loads. Have you contacted your host to ask them for advice? It could be that you're on a shared host with some naughty people who are serving mp3s and videos and slowing everybody down.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,323
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Site is taking a long long time to load.

 
0
  #10
Sep 26th, 2009
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC