View Single Post
 
Old 03-10-2017, 02:20 PM
Roger-U Roger-U is offline
Centurion
 
Join Date: Apr 2008
Location: Surrey, UK
Posts: 112
Default multiple WebClient

I have a program in VB.net 2008 that manages about 6 websites.

So I wrote a little routine to poll them all and measure the response times - typically around 40mS

The polling routine runs in its own thread.

Then I thought "ok, fire off 6 threads and poll them all" .. well it works but the response time is now around 500mS

I experimented with different values for
ServicePointManager.DefaultConnectionLimit and ServicePointManager.MaxServicePoints

but that makes no difference.

Surely I should be able to fire off any reasonable number of webClient requests each on its own thread without that sort of time penalty.

any ideas what I am missing?
Reply With Quote