G
Guest
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
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