Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Linux VPS Support

Notices

Reply
 
Thread Tools
  #1  
Old 06-28-2010, 07:20 PM
proprod proprod is offline
Hatchling Croc
 
Join Date: Apr 2007
Location: Fond du Lac, Wisconsin
Posts: 49
Default Slow on First Load

Hi all.

I recently purchased a VPS and am very happy. Been with Hostgator for several years now.

I'm only having one issue thus far on the VPS. I only have one account set up and am currently designing the site. When I first visit the site in the browser, it loads very slowly. Subsequent visits after that are great. If I wait an hour or so and go back to the site, it's slow on the initial visit again. It's almost as if it's sleeping and once I've awakened it, it's fine.

Please let me know if you have any suggestions.

Thanks.
__________________
Reply With Quote
  #2  
Old 06-28-2010, 07:34 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Slow on First Load

If you can provide the domain for the site we can test and see how it loads for us.
Reply With Quote
  #3  
Old 06-28-2010, 08:31 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 937
Default Re: Slow on First Load

Is your site SQL driven? If so, I'm betting you have a query that isn't being indexed very well, so the 2nd time it loads it probably gets cached.
Reply With Quote
  #4  
Old 06-28-2010, 09:17 PM
proprod proprod is offline
Hatchling Croc
 
Join Date: Apr 2007
Location: Fond du Lac, Wisconsin
Posts: 49
Default Re: Slow on First Load

Quote:
Originally Posted by GatorDaveC View Post
Is your site SQL driven? If so, I'm betting you have a query that isn't being indexed very well, so the 2nd time it loads it probably gets cached.
Ahh. Good call. It is SQL driven and gets cached. So that would make sense. I will enable monitoring and check to see which query.

Thanks. Will report back.
__________________
Reply With Quote
  #5  
Old 06-28-2010, 09:18 PM
proprod proprod is offline
Hatchling Croc
 
Join Date: Apr 2007
Location: Fond du Lac, Wisconsin
Posts: 49
Default Re: Slow on First Load

Quote:
Originally Posted by GvilleRick View Post
If you can provide the domain for the site we can test and see how it loads for us.
If the above does not enlighten me, I will report back. Thanks.
__________________
Reply With Quote
  #6  
Old 06-28-2010, 09:30 PM
c3mtech c3mtech is offline
Baby Croc
 
Join Date: Jul 2009
Posts: 75
Default Re: Slow on First Load

Also make sure you add expires headers and public cache control to your includes files. You can also experiment with mod_deflate
Reply With Quote
  #7  
Old 06-28-2010, 10:25 PM
proprod proprod is offline
Hatchling Croc
 
Join Date: Apr 2007
Location: Fond du Lac, Wisconsin
Posts: 49
Default Re: Slow on First Load

Turns out there was a pretty large sql query that wasn't being cached at all and also one that did nothing that was invalid.

I believe the first query converted the data to session variables. And boom, when my session expired...

I'm going to check the page in about an hour and see what type of load time I get.

PS: I've got the expires headers and what not all set. Gzip also. I score a 97% on PageSpeed which is why I was curious what was the hold up
__________________
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Website load very slow? Supersfat Shared Hosting Support 2 06-01-2010 02:55 PM
gator509 slow load times overlord Network Status 2 07-25-2008 03:32 AM
Images load slow or not at all in Internet Explorer LT_Safety_Supply Shared Hosting Support 5 01-29-2007 11:08 AM
Everything is so slow... Andeavour Network Status 2 06-16-2006 03:25 AM

All times are GMT -5. The time now is 05:45 AM.