Discussion Locked

Performance - IIS w/ different OS HELP!!

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

A few months ago I started an ASP based website hosted on an NT server with a
remote hosting service. Their NT servers run NT 4, Service Pack 6. My QA box
that I use for development runs Windows 2000. A couple of weeks ago I uploaded
the most complex portion of the site. Complex in the sense that of the 8 ASP
pages which comprise it, there are about eight open recordsets from the database,
as compared to the other pages which make up the site and have only 1-3
recordsets. I didnot think that the amount of recordsets in the complex portion
was too many, but thoroughly tested it on my QA box (not only is it running Win
2000, but it is a PIII 1 Ghz, w/ 256 mb of RAM) to make sure it was ok. Having
tested it, I uploaded it to the remote server, however, performance became
unacceptable. The average response time of a page in the complex portion had
been just over 3-4 seconds on my QA box, but on the remote server it jumped to 3-
5 minutes. Needless to say, the pages timed out. After running several tests
with the remote hosting company, I have concluded that it must be a difference
between IIS under Win 2000 and under NT 4. One of the QA people at the remote
hosting service copied the whole siteand put it on a local NT 4 box. When
accessing the complex portion, load times were still from 3-5 minutes. The only
difference between the machine he was running on and my QA box was the OS. Do
you know of any specific issues with performance between IIS under NT 4 and IIS
under Win 2000 that would cause this, or anything that could possibly help me fix
the problem? The web hosting service does not want to move to Windows 2000 at
this time. Thanks for any help or ideas.

8 replies

by gen_arg

Bob:

If after changing to NT, the response time was almost the same, it may imply that your problem is somewhere else that didn't change with the move from Windows 2000 to NT, like the data access. Maybe you have a problem with your data access code or the database: ? are you using Stored Procedures with cursors ?. ? Are you using ADO to instantiate the recordset object, or something else ?. Check for leads on the data access side of your ASP application.

by bob

Thanks for the response, but the problem is that after changing to NT, the response time decreased by 4 minutes. From this I can deduce that the problem is the way IIS under NT 4 treats pages and the way IIS under Win 2000 treats pages. I need to know if other people have had this problem or what I might be able to do to fix it. Again though, I thank you for the response.

by chrandrob

The problem is not going from W2K to NT 4. Most likely, as GEN_ARG tried to bring up, it has to do with your database/db connectivity.

Your web pages have considerably more resources available on your QA system than on the actual server.

Are any of your recordsets accessing the same tables at the same time, and what db are you using?

If you are using SQL Server, you should use the nolock optimization hint with each table you are selecting from. Otherwise, the table will be locked by default and it will not be able to process more than one query at a time. The queries will be executed sequentially. If you have several queries in the queue waiting to be executed, time runs out.

If the tables are not locked, then SQL Server can execute many or all queries at the same time.

If you are using Access, forget it. Access locks a table if you even think about it.

Even with 8 recordsets, it should be able to process the queries in plenty of time. You should optimize the queriesto run as efficiently as possible.

My two suggestions would be to specify "with(nolock)" on all of your selcted tables and to do some heavy duty query optimization.

by rmt888

I do not know the specifics but I've read that IIS5's performance in Win2K is much improved over IIS4 in NT. I also have a similar setup as yours (except dual PIII-667 running Win2K/IIS5) and my client ran NT4/IIS4. Though my ASP isn't as complex as yours, I still noticed a slight difference in response times. I guess the best thing you can do is run NT4/IIS4 in a separate computer for testing before uploading to your client's server.

by rmt888

I forgot to also mention that you can use the getrows or getstring methods of retrieving your recordsets to improve performance considerably instead of the loop-movenext method.

This discussion is closed to new replies.