473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Long Delay in initial load of ASPX pages

I've just moved to a new hosting company which provides me a "Virtual
Dedicated Server" running Windows Server 2003/ASP.NET 2.0.

My site is not pre-compiled and, at least for now, I'd prefer that it stay
that way. I have ASPX pages with .CS code-behinds and I have a bunch of .CS
class files in the APP_CODE diredctory of my application.

Everything runs fine but I have an interesting problem: When I go to the
site for the first time in a few hours (or to a specific page I haven't
visited for a few hours), it takes a long time (5 or 6 seconds) for the page
to come up. Then, immediately after that, the page will load perfectly fast.
Then, again, a few hours later, it'll take a long time to load.

I'm not doing any kind of fancy data caching or anything that should be
causing this. So, if I'm not tocuhing the source files (.aspx, .cs, etc.),
what's causing the delay? Is it JIT recompiling again? If so, why? Is there a
trick for determining when my application or one of its classes/pages was
last compiled? Is there a system setting somewhere which causes the thing to
clear the compiled objects?

Alex
Aug 18 '06 #1
4 1843
without all the technical mumbo jumbo: your app is unloading. See if
your provider has a URL task scheduler. Then you could just have it
hit your main page every so often to keep it loaded. That will solve
your problem.

Aug 18 '06 #2
Thanks for this. So I checked and it's only recycling every 29 hours. So it's
not that. But then I noticed "Shutdown Worker Processes after being idle
for..." item under the "performance" tab. That's set to 20 minutes. But does
that also cause the application to be "unloaded"?

Alex
"r2thej151" wrote:
take a look here.

http://www.microsoft.com/technet/pro....mspx?mfr=true

Aug 18 '06 #4
Alex Maghen wrote:
Thanks for this. So I checked and it's only recycling every 29 hours. So it's
not that. But then I noticed "Shutdown Worker Processes after being idle
for..." item under the "performance" tab. That's set to 20 minutes. But does
that also cause the application to be "unloaded"?

Alex
Hi Alex,

Yeah, you normally have to tune both of them. Twenty minutes is pretty
short but it does help conserve resources on the server. If you have a
solid application then it may be ok to assign a dedicated app pool and
uncheck both of them. However, I recommend letting the recycle WP
run every 48 hours.

Regards,

Robert

Aug 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob Murdoch | last post by:
I'm developing an intranet application using W2k server and IE5.5 - 6.x clients. I've got one particular function that calls a stored procedure to update a number of records, depending on user...
1
by: ritchie | last post by:
I have a fairly complex asp.net page containing a number of usercontrols. It takes 6-8 seconds to load first time up with data. Subsequent loads of another record in the page only takes 1-2...
10
by: Kristoffer Arfvidson | last post by:
In my server I notice a small delay of about 2 seconds before it starts processing aspx documents... Because I have first off an standard asp page, witch contains the frameset and title and so...
7
by: mfeingold | last post by:
I am working on a system, which among other things includes a server and a ..net control sitting in an html page and connected to the server. I ran into a couple of problems, you guys might have...
12
by: Ian Murphy | last post by:
Hopefully someone else has seen something similar. We are experiencing an odd problem with aspnet, iis6 and w2k3. I have written a small site which works fine during the day. Each morning however...
3
by: Wayne Wengert | last post by:
With most web sites I build that include aspx pages, when the user loads the first aspx page there is a noticeable delay (15 - 30 sec) before it is completely loaded. What causes this. I thought it...
5
by: DCC-700 | last post by:
I am using ASP.Net with VB on the 1.1 Framework running on Win XP Pro. I am trying to gauge the time it takes to sort a datagrid using different code sets. But when I am debugging the page there...
10
by: nagar | last post by:
I noticed this behavior in a C# application. For its nature the applications stays mainly minimized to the tray icons As soon as it's launched the application responds normally. After a while,...
0
by: David Jackson | last post by:
Hello, I first posted this several weeks ago but didn't get any replies so I'm trying again in the hope that someone might be able to help. We are in the process of upgrading our internal web...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.