Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
274 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

885 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