【已解决】httpwebrequest并发速度上不去的原因.

用VB.NET做httpwebrequest的多线程开发,照着网上的说明修改了ServicePointManager.DefaultConnectionLimit为512,可是速度还是上不去.

郁闷了一上午,最后找到原因了:原来是杀毒软件的缘故.

加了360和360杀毒的白名单后,速度提高了很多倍.

以下为测试数据:

2131个网址:
50 threads 860s=14.33min
100 threads 856s=14.26min 846s=14.1min
100 tasks 852s=14.2min
杀毒软件设置例外后:
50 threads 218s=3.63min
100 threads 146s=2.43min
100 tasks 147s=2.45min

猜你喜欢

转载自blog.csdn.net/milaoshu1020/article/details/80335892