ASP.NET slow now and then

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Any ideas what can cause ASP.NET pages to be slow now and
then? It can take more than 5 seconds to get the page,
which is way to much. One of the pages (not sure how many
there are, i have just noticed it on the "home" page) are
very simple (only HTML, no database or anything involved).

I have made sure that i have cached the page:
<%@ OutputCache Duration="7200" VaryByParam="none"%>

I don't think i have ever seen the slowness when i am
navigating on the website (does this mean anything?)

I'm trying to figure out if it can be my code, or the
webserver being too busy (i don't have control over the
webserver)

Thank you!
 
If you are running on Windows2003/IIS6, the default setting for the default
application pool is to recycle the app pool if the app is idle for a certain
period. This can cause a recompilation to occur and/or everything to be
re-cached so it would slow down again until its all back in the cache. If
this is the case, (IIS6/Win2k3) then go into the IIS manager, right click on
the default app pool (or whichever app pool your web application is in, and
examine some of those settings. Perhaps try disabling this or extending this
to see if it makes a difference.
 
Tom said:
Any ideas what can cause ASP.NET pages to be slow now and
then? It can take more than 5 seconds to get the page,
which is way to much. One of the pages (not sure how many
there are, i have just noticed it on the "home" page) are
very simple (only HTML, no database or anything involved).

You noticed it on the "homepage", which is usually the first page
of the site. Did that also happen to be the first time you (anyone)
accessed the site, after dll's (or web.config) were changed?

Then that is regular behaviour: it is the JIT compiler at work.

Hans Kesting
 
Hi Paul,

Yes, we are using IIS 6.0. I have also thought about the
application pool. I will have them make sure that this is
not restarted, and see if it makes any difference.

But i doubt that this is the problem. When i requested the
page this morning, it was slow on my first request, but
only 6 minutes before my request someone else had
requested an aspx-page (looking in the IIS log). And if i
remember correctly, when the application pool recycles, it
writes the headers into the log file(#fields, #date and so
on), and this is not true between these two requests.

So if you have any other ideas, they are welcome :-)

Thank you!
 
Just a thought,

How does the memory consumption work when using ASP.NET?
If i cache my pages, but some other website on the same
server needs the memory, will my pages go out of the
cache? And, does this happen to all of my pages, or only a
few?

I just remember that i talked to them a few days ago, and
they said they were about to add some more memory in the
webserver. Is it possible that i would see this behavior
if the webserver was running low on memory?
 
Back
Top