Delay in processing of aspx pages?

  • Thread starter Kristoffer Arfvidson
  • Start date
K

Kristoffer Arfvidson

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 on...
This one comes up quickly, then my IE says Ready...
and waits for about 2 seconds, then, it starts to load the aspx file...

How come there is a delay before aspx files are processed?
The asp file it not cached (And I tryed to remove all cache)

My server provider uses win 2000 to process ASP.NET pages...

Yours: Kristoffer
 
C

Cowboy \(Gregory A. Beamer\)

JIT compilation of IL for the first hit. Not sure if it happens every time,
except it may have to do with the fact that ASP and ASP.NET session are two
different creatures.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
C

Craig

Is it just the first time it loads after compiling? That would be JIT
working...

If it does it *every* time, then I don't know what to tell you...
 
K

Kristoffer Arfvidson

Aha, but the thing is that it seams (I could be wrong here) but it seams
that this delay is done everytime a client connects then, Once its done and
the client stays connected, its fast and so...
Its just the first time, but what annoys me is that it seams to be every
time a client connects...

witch means, that the response time for my server appears to be very slow,
as in fact it may not be...

Im thinking about if there is a possibility to show a "Loading..." text
while the JIT is compiling the code?
so that the users are aware of that something is actually happening and the
server is availible and contacted?

Yours: Kristoffer
 
M

Michael

Im thinking about if there is a possibility to show a "Loading..." text
while the JIT is compiling the code?
so that the users are aware of that something is actually happening and the
server is availible and contacted?

Oh come now, it doesn't take THAT long. :)
 
H

Hans Kesting

Kristoffer Arfvidson said:
Aha, but the thing is that it seams (I could be wrong here) but it seams
that this delay is done everytime a client connects then, Once its done and
the client stays connected, its fast and so...
Its just the first time, but what annoys me is that it seams to be every
time a client connects...

How often do these client connect?

As far as I know, the following is regular behaviour by asp.net:
* the first time anyone accesses the page, it gets JIT-compiled. This
compiled
version is cached.
* the next time this page is accessed, the compiled version from the cache
is used.
* when the application is restarted, the cache is empty, so the next access
will cause recompilation.
* some situations where application restart can occur:
* after a change to web.config
* after new dll's are copied to this app.
* after the application has been inactive for a while (possibly right
after the last
session has expired)

Hans Kesting
 
K

Kristoffer Arfvidson

Hmm, actually it does...
Unfortunatly, it does take some time...
I don´t know, maybe its something else that is wrong in my code, well, maybe
Ill write a loading text in the asp page, ill see...

Yours: Kristoffer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top