So new to .NET programming and made a basic blog site using the MVC pattern and EF code first design and SQL compact. I hosted on somee for free to test out deployment. I've noitced when first loading any page that makes a SQL compact call the site takes
a good 20 seconds or so to load. After that initial call though everything else runs pretty fast. It also seems if you visit the page again pretty soon after leaving it it continues to run fast. Since I'm using free hosting I don't have logs or anything to
help figure out what is wrong. Just hoping people can give any advice to try and solve the issue.
There is a warm up time when a dot net site first starts running. As long as the website does not shutdown for lack of use you will not see this startup time delay. There are some free services which will check your website to make sure it is still up.
This might help to keep the site alive.
I don't think it happens because you use SQL server compact version. Your blog is using pretty much large images (Background images etc.) so it will take time to download them in order to display those on the webpage.
wizuriel
After that initial call though everything else runs pretty fast.
That's because your browser cache images after the first load. So it will load faster than the first call.
You can install Yslow plugin and see what are the things causing your site load slow.
Your asp.net needs to be streamlined into basic html by the IIS server. This doesn't happen when you deploy, but when you first call the page. Once the page was called once, it should run faster for all users (factor in browser cache and it will become even
faster for those who access your site regularly) as long as the application, application pool on the IIS (or IIS itself) are not restarted.
Alexei Fimine
_____________
"And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing"
I don't think it is an image or a cache issue. If I go to the about section right away the page loads fast, if I then click a link to home or any of the others there is a noticable delay the first time it loads up. It seems if I check back within an hour
or so, it still loads fine, but after an hour it goes back to that first load of 20+ seconds.
site up time isn't showing any issues. Will try Yslow later tonight.
Site loading time will always depends on many factors, such as:
1. network speed
2. server specification
3. any underlying issues on the server (such as excessive traffic to and from the server, DDoS attack, etc)
If your site loads slow at the first time (even it is just a simple site), this indicates that there is an issue on the server. The server may be overloaded with traffic, or the server hosts several hundreds of sites. Well, if you are using a shared host, they
will not inform you about the number of sites hosted in a server. What you can do is to try to visit the company (webhost) sites and compare it with yours. If your site is way to slow as compare to the company site, this means that your site is hosted on an
overloaded server.
You need to inform your webhost about this issue. If they cannot resolve it, you should consider changing to a host that does not overloaded their servers with tons of sites and junks.
Please mark this response as an "answer" if it helps you. Thanks heaps!
The reason is the application pool timeout. Check your value and increase it if possible. (most of shared or free hosting companies keeps this vaue low by default, so if you have not any active connection to free server resources)
wizuriel
Member
7 Points
31 Posts
Site slow startup time
Jul 08, 2012 09:16 PM|LINK
Hello.
So new to .NET programming and made a basic blog site using the MVC pattern and EF code first design and SQL compact. I hosted on somee for free to test out deployment. I've noitced when first loading any page that makes a SQL compact call the site takes a good 20 seconds or so to load. After that initial call though everything else runs pretty fast. It also seems if you visit the page again pretty soon after leaving it it continues to run fast. Since I'm using free hosting I don't have logs or anything to help figure out what is wrong. Just hoping people can give any advice to try and solve the issue.
My blog http://thetaraday.somee.com/
Ken Tucker
All-Star
16797 Points
2608 Posts
MVP
Re: Site slow startup time
Jul 08, 2012 11:38 PM|LINK
There is a warm up time when a dot net site first starts running. As long as the website does not shutdown for lack of use you will not see this startup time delay. There are some free services which will check your website to make sure it is still up. This might help to keep the site alive.
http://siteuptime.com/
Space Coast .Net User Group
Ruchira
All-Star
44342 Points
7194 Posts
MVP
Re: Site slow startup time
Jul 09, 2012 01:44 PM|LINK
Hello,
I don't think it happens because you use SQL server compact version. Your blog is using pretty much large images (Background images etc.) so it will take time to download them in order to display those on the webpage.
That's because your browser cache images after the first load. So it will load faster than the first call.
You can install Yslow plugin and see what are the things causing your site load slow.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.fimine
Contributor
3024 Points
552 Posts
Re: Site slow startup time
Jul 09, 2012 02:18 PM|LINK
It's normal.
Your asp.net needs to be streamlined into basic html by the IIS server. This doesn't happen when you deploy, but when you first call the page. Once the page was called once, it should run faster for all users (factor in browser cache and it will become even faster for those who access your site regularly) as long as the application, application pool on the IIS (or IIS itself) are not restarted.
_____________
"And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing"
wizuriel
Member
7 Points
31 Posts
Re: Site slow startup time
Jul 09, 2012 02:46 PM|LINK
I don't think it is an image or a cache issue. If I go to the about section right away the page loads fast, if I then click a link to home or any of the others there is a noticable delay the first time it loads up. It seems if I check back within an hour or so, it still loads fine, but after an hour it goes back to that first load of 20+ seconds.
site up time isn't showing any issues. Will try Yslow later tonight.
necro_mancer
Star
8169 Points
1595 Posts
Re: Site slow startup time
Jul 10, 2012 04:18 AM|LINK
hi wizuriel,
Site loading time will always depends on many factors, such as:
1. network speed
2. server specification
3. any underlying issues on the server (such as excessive traffic to and from the server, DDoS attack, etc)
If your site loads slow at the first time (even it is just a simple site), this indicates that there is an issue on the server. The server may be overloaded with traffic, or the server hosts several hundreds of sites. Well, if you are using a shared host, they will not inform you about the number of sites hosted in a server. What you can do is to try to visit the company (webhost) sites and compare it with yours. If your site is way to slow as compare to the company site, this means that your site is hosted on an overloaded server.
You need to inform your webhost about this issue. If they cannot resolve it, you should consider changing to a host that does not overloaded their servers with tons of sites and junks.
Please mark this response as an "answer" if it helps you. Thanks heaps!
Professional SQL 2008 R2 Service
HostingASPNe...
All-Star
15922 Points
2982 Posts
Re: Site slow startup time
Jul 10, 2012 08:04 PM|LINK
Hello,
The reason is the application pool timeout. Check your value and increase it if possible. (most of shared or free hosting companies keeps this vaue low by default, so if you have not any active connection to free server resources)
Regards
Free ASP.NET Examples and source code.