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
267 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

21 Experts available now in Live!

Get 1:1 Help Now