Solved

Slow 1st Load.  I have a site that is built with ASP.NET.  I really need help w/ this.

Posted on 2007-12-06
8
268 Views
Last Modified: 2013-11-07
Hello, I am having a really hard time figuring this out.  

I have a site that has a very long load time on the first visit.  Then it is very fast for the rest of the time I use the site.  I know it compiles, but I can only be idle for about 1-2 minutes before I have to wait for the long load.

I have about 1800 301 redirects.  Could this be it?  

I wrote a page that frames our site and then refreshes every 5 seconds.  I ran it from my computer and 2 hours later I visited the site.  This worked.

I don't want to have to keep this page running on my computer 24/7.

I put it on a cron job on another server to duplicate this.  I did a get contents in php.  I also tried the frame, but neither have the same effect.

In the apps he set the purge info to 2 hours, so this 1st page load lag should not be happening.

The developer I'm working with can't figure it out either.  Please give me any suggestions.  I'm freaking out here.  Thanks.
0
Comment
Question by:smoothcat11
  • 3
  • 3
8 Comments
 
LVL 23

Expert Comment

by:Jens Fiederer
ID: 20421878
Have you tried using precompiled code?
0
 

Author Comment

by:smoothcat11
ID: 20421918
Yes, the code is precompiled.  I am stuck on this.  If you have any other ideas, I would appreciate it.  Thanks.
0
 
LVL 23

Expert Comment

by:Jens Fiederer
ID: 20422266
The reason I asked was that you said "I know it compiles", which would not be true if you had precompiled it.

I would have asked about application/session events, but if only 2 minutes go by, that sounds too short for a session to time out.

Perhaps it is ALWAYS very slow, and only gives the APPEARANCE of better speed because you are only picking up a cached copy?  Is your page REALLY being "hit" on the fast ones?


Some tools and techniques for monitoring and improving ASP.NET performance are HERE: http://msdn2.microsoft.com/en-us/library/44e5wy6k.aspx
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:smoothcat11
ID: 20422351
You're right.  It doesn't compile if it is precompiled.  That was a good question.  I am not that familiar w/ asp.net.  I usually use PHP which doesn't need to compile.

It's not the cache.  I go to brand new pages never hit and it's blazing.  It's just the initial load.

Are there any settings in the apps to make this not time out?  If so, can you tell me what they are?  Thanks for your time.

0
 
LVL 23

Expert Comment

by:Jens Fiederer
ID: 20422418
You could play with sessionTimeout in web.config, but it seems unlikely for it to have been set as low as 2 minutes.
0
 

Author Comment

by:smoothcat11
ID: 20503732
It was the firewall!!!  Aparently the power supply had to be replaced.  Who would have thought that??? Also there were issues w/ some other hardware on the server.  Took forever to figure out.  I hope this helps someone!  Thanks.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 20952965
PAQed with points refunded (500)

Computer101
Community Support Moderator
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now