Slow page performance

G

Guest

Hi all

I have an aspx page (not compiled) that exhibit the following behaviour every once in a while
When a request for the page is made, aspnet_wp spikes up to 100%, and then after about 30 seconds or so the Page_Load method is finally invoked, and the page loads as normal

This happens every 5th or 6th request for that page. Initially I blamed the just-in-time compiling, but it doesn't make sense since the code does not change at all, and to my understanding it will only be compiled during first execution between code changes

I've seen several KB articles regarding aspnet_wp taking up 100% processor time and there are hotfixes available if you contact MS directly. However, the symptoms described in the article is not quite what I have

Also, what usually happens between the moment a page request is received by the IIS server and Page_Load executes? I want to get an idea of what could be the cause of that 30-second lag

Any ideas?
 
M

Malek

did you try the trace ... it will give you what is happening from start to
finish (Bgin Init, End Init, Begin PreRendre, End PreRender, Begin
SaveViewState, End SaveViewState, Begin Render, End Render), how much time
each of those event are taking, and lots of other useful info ...
Kairi said:
Hi all,

I have an aspx page (not compiled) that exhibit the following behaviour every once in a while:
When a request for the page is made, aspnet_wp spikes up to 100%, and then
after about 30 seconds or so the Page_Load method is finally invoked, and
the page loads as normal.
This happens every 5th or 6th request for that page. Initially I blamed
the just-in-time compiling, but it doesn't make sense since the code does
not change at all, and to my understanding it will only be compiled during
first execution between code changes.
I've seen several KB articles regarding aspnet_wp taking up 100% processor
time and there are hotfixes available if you contact MS directly. However,
the symptoms described in the article is not quite what I have.
Also, what usually happens between the moment a page request is received
by the IIS server and Page_Load executes? I want to get an idea of what
could be the cause of that 30-second lag.
 
R

Rick Strahl [MVP]

The first time the page loads the page is compiled so there's lots of stuff
happening internally. However, unless you have a giant page that's
referencing a whole bunch of different assemblies (which may also load for
the first time) this should not be a major issue. Certainly subsequent hits
should be much faster.

I've seen this behavior at times too but usually I've found the culprit in
something else on the machine going on that's causing (Index Server running
an index or a SQL Server on the same box performing internal stuff).

Also is it possible that you're using the ASPNET State Service? I've seen
some slowness related to that in a few instances as well.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web


Kairi said:
Hi all,

I have an aspx page (not compiled) that exhibit the following behaviour every once in a while:
When a request for the page is made, aspnet_wp spikes up to 100%, and then
after about 30 seconds or so the Page_Load method is finally invoked, and
the page loads as normal.
This happens every 5th or 6th request for that page. Initially I blamed
the just-in-time compiling, but it doesn't make sense since the code does
not change at all, and to my understanding it will only be compiled during
first execution between code changes.
I've seen several KB articles regarding aspnet_wp taking up 100% processor
time and there are hotfixes available if you contact MS directly. However,
the symptoms described in the article is not quite what I have.
Also, what usually happens between the moment a page request is received
by the IIS server and Page_Load executes? I want to get an idea of what
could be the cause of that 30-second lag.
 

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

Top