473,387 Members | 1,864 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,387 software developers and data experts.

ASP.NET slow now and then

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!

Nov 19 '05 #1
5 2501
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.

--

- Paul Glavich
ASP.NET MVP
ASPInsider (www.aspinsiders.com)
"Tom" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
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!

Nov 19 '05 #2
Tom wrote:
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
Nov 19 '05 #3
Tom
No, nothing is changed, it just happens randomly (to me it
looks randomly).

-----Original Message-----
Tom wrote:
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 pageof 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
.

Nov 19 '05 #4
Tom
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!

-----Original Message-----
If you are running on Windows2003/IIS6, the default setting for the defaultapplication pool is to recycle the app pool if the app is idle for a certainperiod. This can cause a recompilation to occur and/or everything to bere-cached so it would slow down again until its all back in the cache. Ifthis is the case, (IIS6/Win2k3) then go into the IIS manager, right click onthe default app pool (or whichever app pool your web application is in, andexamine some of those settings. Perhaps try disabling this or extending thisto see if it makes a difference.

--

- Paul Glavich
ASP.NET MVP
ASPInsider (www.aspinsiders.com)
"Tom" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
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!

.

Nov 19 '05 #5
Tom
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?

-----Original Message-----
If you are running on Windows2003/IIS6, the default setting for the defaultapplication pool is to recycle the app pool if the app is idle for a certainperiod. This can cause a recompilation to occur and/or everything to bere-cached so it would slow down again until its all back in the cache. Ifthis is the case, (IIS6/Win2k3) then go into the IIS manager, right click onthe default app pool (or whichever app pool your web application is in, andexamine some of those settings. Perhaps try disabling this or extending thisto see if it makes a difference.

--

- Paul Glavich
ASP.NET MVP
ASPInsider (www.aspinsiders.com)
"Tom" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
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!

.

Nov 19 '05 #6

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

Similar topics

1
by: Jawahar Rajan | last post by:
All, I am using the ASP code below to save some data from a SQL Server database via ADO as an Excel spreadsheet strReportName = Request.QueryString("ReportName") If len(strReportName) > 0 then...
5
by: Shay | last post by:
essentially I am trying to do some counts based on some assumptions in the recordset. So I get the RS back, put the values into a variable, move to the next record in the RS and compare what is in...
12
by: Neil | last post by:
I previously posted re. this, but thought I'd try again with a summary of facts. I have an Access 2000 MDB with a SQL Server 7 back end. There is a view that is linked to the database via ODBC...
8
by: Neil | last post by:
I have a very puzzling situation with a database. It's an Access 2000 mdb with a SQL 7 back end, with forms bound using ODBC linked tables. At our remote location (accessed via a T1 line) the time...
2
by: Yonatan Goraly | last post by:
I am in the process of adding PostgreSQL support for an application, in addition to Oracle and MS SQL. I am using PostgreSQL version 7.3.2, Red Hat 9.0 on Intel Pentium III board. I have a...
2
by: David | last post by:
Hi, We have an internal network of 3 users. Myself & one other currently have individual copies of the front-end MS Access forms and via our individual ODBC links we have used the: File > Get...
3
by: Jennyfer J Barco | last post by:
In my application I have a datagrid. The code calls a Stored procedure and brings like 200 records. I created a dataset and then a dataview to bind the results of the query to my grid using ...
3
by: michael | last post by:
Hi, I am trying to write an ASP.NET web app, in Visual Basic.NET, using Visual Studio.NET 2004, .NET framework 1.1.4322 SP1 Running the project/app on localhost while in dev/write/debug stage ...
12
by: grace | last post by:
i am wondering why my database retrieval becomes too slow...we set up a new server (ubuntu, breezy badger) machine where we transferred all our files from the old server.. Our new server uses Asus...
13
by: eighthman11 | last post by:
using Access 2003 and sql server version 8.0 Hey everyone. Created a text box where the user types in an Inventory number and it takes them to that inventory number on the contimuous form. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.