Thanks
With Regards
Abhishek Rajiv Luv
"Helpful then please Mark as Answer"
http://www.codeabstract.com/
http://pluralsight.com/training/users/abhishekluv
What can I do to speed it up on my production server ?
I recommend you take your question to the IIS forum for further discussion. Your issue is not related to ASP.NET Web Page development, and is most liekly a server config issue in my opinion. The forum is at
http://forums.iis.net.
@Afzaal - Loading is not the problem, but the delay before it even starts to load.
I also have this problem. You know this problem is not with ASP.NET its with the speed of your processor. The server will take the speed of your processor and RAM. The computer you are using needs to cache the process! Thats why, while you visit the website
for the first time. It slowly loads the page. Because it is waiting for the server to fully load it self. You can see the banner waiting for localhost in the bottom of Chrome. So that means your code and server is ok. But your processor needs some time.
So don't worry! Just upload codes to server. There it will be loaded in a blink!
Please "Marks As Answer" if any answer helped you out!
~~! FIREWALL !~~
@Abhishek - I used parts of Starter site template.
I am using VS2012 to develop my site and this delay is killing me. On my dev machine whatever change I make to my code if I press F5 in browser to see how it looks I stil have to wait 5-8 seconds and after some time it gets very frustrating. It is really
slowing me down. I have a very powerfull machine (i7,16GB, dual raid ssd) and this looks very strange to me.
I posted it in this forum because I dont remember this was happening while I was using WebForms.
I found what the problem was. It was some dropdown menu that was populated from SQL database.
It had a lot of code and SQL reads, so I cached it and for some reason cache does not work on localhost, but it does on production server. Must be because it recompiles on every refresh on localhost.
The same thing was responsable for the casual delay on server. When cache times out it had to recreate the menu and there was the 16 secunds delay again.
I optimized the code and and it works like a charm now.
Thank you all for your help.
Marked as answer by exe.bat on Feb 02, 2013 03:47 AM
Abhishek Luv
Participant
1746 Points
468 Posts
Re: Very slow first page load
Jan 26, 2013 02:15 AM|LINK
R u using Startersite Template for your site?
With Regards
Abhishek Rajiv Luv
"Helpful then please Mark as Answer"
http://www.codeabstract.com/
http://pluralsight.com/training/users/abhishekluv
Mikesdotnett...
All-Star
154927 Points
19867 Posts
Moderator
MVP
Re: Very slow first page load
Jan 26, 2013 06:57 AM|LINK
I recommend you take your question to the IIS forum for further discussion. Your issue is not related to ASP.NET Web Page development, and is most liekly a server config issue in my opinion. The forum is at http://forums.iis.net.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
Topspy
Contributor
3785 Points
806 Posts
Re: Very slow first page load
Jan 26, 2013 08:12 AM|LINK
You might check on your server event log and see if there's anything helpful. As suggested above, you mostly need to optimize your IIS server.
Asp.net Hosting | Windows Hosting | SQL Server Hosting
Afzaal.Ahmad...
Contributor
2661 Points
1040 Posts
Re: Very slow first page load
Jan 26, 2013 11:48 AM|LINK
I also have this problem. You know this problem is not with ASP.NET its with the speed of your processor. The server will take the speed of your processor and RAM. The computer you are using needs to cache the process! Thats why, while you visit the website for the first time. It slowly loads the page. Because it is waiting for the server to fully load it self. You can see the banner waiting for localhost in the bottom of Chrome. So that means your code and server is ok. But your processor needs some time.
So don't worry! Just upload codes to server. There it will be loaded in a blink!
~~! FIREWALL !~~
wavemaster
Participant
1289 Points
1127 Posts
Re: Very slow first page load
Jan 26, 2013 12:47 PM|LINK
Ok, now that we now your question is about running it locally, yes, mine is also slow. Once live it will work as it should.
exe.bat
Member
1 Points
8 Posts
Re: Very slow first page load
Jan 26, 2013 03:23 PM|LINK
@Abhishek - I used parts of Starter site template.
I am using VS2012 to develop my site and this delay is killing me. On my dev machine whatever change I make to my code if I press F5 in browser to see how it looks I stil have to wait 5-8 seconds and after some time it gets very frustrating. It is really slowing me down. I have a very powerfull machine (i7,16GB, dual raid ssd) and this looks very strange to me.
I posted it in this forum because I dont remember this was happening while I was using WebForms.
Is this normal behavior ?
wavemaster
Participant
1289 Points
1127 Posts
Re: Very slow first page load
Jan 26, 2013 05:21 PM|LINK
I am mostly working from WebMatrix.
After a change with no browser open it takes 10 seconds for the site to come up, same for Visual Studio.
Afzaal.Ahmad...
Contributor
2661 Points
1040 Posts
Re: Very slow first page load
Jan 26, 2013 06:44 PM|LINK
It is strange for me too O.o I mean i7 should never do this!
However you now need to post your issue to iisforums forums.iis.net here
~~! FIREWALL !~~
exe.bat
Member
1 Points
8 Posts
Re: Very slow first page load
Jan 27, 2013 11:48 AM|LINK
Just reinstalled my PC and tried this all again.
Preload time is not 6-8 but 16 seconds. Here is a photo attached.
It must be some configuratio error in my site. This is not first load but refresh (F5) in Google Chrome.
Someone mentioned IIS forums ? What does IIS has to do with this ? This is happening on my dev pc. It is the same in IIS Express and in VSD server.
Does anyone have any suggestion ?
exe.bat
Member
1 Points
8 Posts
Re: Very slow first page load
Feb 02, 2013 03:47 AM|LINK
I found what the problem was. It was some dropdown menu that was populated from SQL database.
It had a lot of code and SQL reads, so I cached it and for some reason cache does not work on localhost, but it does on production server. Must be because it recompiles on every refresh on localhost.
The same thing was responsable for the casual delay on server. When cache times out it had to recreate the menu and there was the 16 secunds delay again.
I optimized the code and and it works like a charm now.
Thank you all for your help.