httpwebreqeust capacity question?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a process that uses httpwebrequest to retrieve jpg images. The
process works fine with a few concurrent users (say 25) but as you increase
the number of users (say 75) the response times begin to increase from 6 ( 25
users) seconds to over 15 ( 50 - 75 users) seconds. I'm looking for any
known limitations that the httpwebrequest may have.
My process is written in C#.
 
I posed the question to Microsoft and they gave me a solution that worked for
me. It has to do with the number of connections a web site is allowed to
have to outside sources. The default value is "2" and this was causing a
bottleneck that caused my slow response times as volume grew. The code that
was added to the web.config was
<system.net>
<connectionManagement>
<add address= "*" maxconnection = "12" />
</connectionManagement>
</system.net>

Once I added this my response times were cut in half on average with the
same load.

This article describes the details about this setting
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07222003.asp
 
Back
Top