I am load testing an ASP.NET 1.1 web app using HTTPS (hosted on Windows
Server 2003 IIS 6). It appears that the first HTTPS call per session takes a
considerable amount of time compared to subsequent requests i.e. this first
request per session calls our logon page and 10% of the time it takes more
than 8 seconds!
Is there some way I can reduce this delay, or identify where the time is
spent?
90% of the time the first page returns in under 3 seconds but it can take up
to a max of 30 seconds.
(The CPU on the web server is quite low. I have tried using an SSL cert
created through MakeCert.exe, and also a trial cert from Verisign, I am
waiting on a genuine cert. I use Visual Studio 2005 to run the load test and
I am running a load of 400 users.)
Thanks for your help!
Eamonn O'Connell.
--
Best regards,
Steve Schofield
Windows Server MVP - IIS
http://weblogs.asp.net/steveschofield
"Eamonn O'Connell" <EamonnO...@discussions.microsoft.com> wrote in
message news:C6C14578-842F-4BCB...@microsoft.com...
>From a load perspective, you should measure warm runtime average
because you are interested in your application's load response times,
not .Net Framework startup time.
And you should configure IIS6 to not periodically restart nor idle
timeout processes with managed code *IFF* you want to avoid the cold
startup costs.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Jul 16, 12:00 am, Eamonn O'Connell
Thanks for your reply. If I understand correctly, I believe the approach you
describe solves a problem with a page loading slowly the first few times it
is called (after the server is re-booted or IIS re-cycled).
I should have clarified that the problem appears to happen not just the
first few times the page is called....but the first time it is called during
a user-session. i.e. part way through a load test, a new user will connect to
the server and ask for the log on page - even though the logon page should
still be in memory (other users were just using it a short time previously)
the page will take more than 8 seconds to load.
Note also, a 'recycle' has not happened. The logon page is called repeatedly
during the load test, and about 10% of the time, it takes more than 8
seconds. If I use HTTP instead of HTTPS, the page loads in under 8 seconds
more than 99.9% of the time.
It looks to me like the initial SSL connection is what is taking the time,
but I'm surprised that it takes so much time.
Any thoughts, also has else anyone found this behaviour?
Regards,
Eamonn O'Connell
Are Certificate Trust List enabled on IIS6? There are some SSL
certificate revocation checks that IIS will do, and it can take non-
trivial time to compute.
Hope this will help.