Re: Poor performance under IIS
- From: "Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx>
- Date: Fri, 20 Jun 2008 17:02:44 +0100
"Ilyas" <ilyas@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:365096f7-a1ca-4f4d-90e1-45e9fa7e75ea@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have an application which brings back 1000 records from a sql server
database. Under the local asp.net development server provided with
Visual Studio 2008, it takes about 1.8 seconds
When I place this application in IIS it takes 16 seconds for the exact
bit of code. I have narrowed the code down to loopoing around the
dataset and creating an object for every row in the dataset. My
question is why does it take so long under IIS but not under the local
asp.net development server?
Any ideas? How can I get this 16 seconds down to a more acceptable
level eg 2-3 seconds? Is this a configuration issue? I have tried
deploying this to 2 different IIS servers and the same bit of code
takes 16 seconds on both IIS boxes
1) When the code is running on the development server, is the database it's connecting to also on the development server?
2) When the code is running on the remote server, is the database it's connecting to on a different remote server? If so, have you got networking issues. Also, what database is it and how are you connecting to it?
3) Can you be a bit more specific about what you mean by "looping around the dataset"? What is actually happening here?
4) Can you confirm that, wherever the bottleneck is, it's not in the actual retrieval of the data from the database...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
.
- Follow-Ups:
- Re: Poor performance under IIS
- From: Ilyas
- Re: Poor performance under IIS
- References:
- Poor performance under IIS
- From: Ilyas
- Poor performance under IIS
- Prev by Date: Poor performance under IIS
- Next by Date: Hide contents in source code
- Previous by thread: Poor performance under IIS
- Next by thread: Re: Poor performance under IIS
- Index(es):
Relevant Pages
|