HttpClient4.0框架进行压力测试问题
各位,大家好
小弟现在有一问题,麻烦大家帮看看。业务需求是用HttpClient4.0对url请求进行压力测试,现生成HttpClient2000个,每个HttpClient对象执行大概60个请求(get,post),每秒钟生成一个HttpClient的时候,没什么压力,可以正常走完。当每秒生成100个HttpClient时,开始报异常,(Software caused connection abort : recv failed.和 The target server failed to respond).有谁遇到过类似的问题,或对这方面了解的,望告知一二,谢谢~~
------解决方案--------------------
一般是用测试应该用HttpUnit吧。
------解决方案--------------------
This usually means that there was a network error, such as a TCP timeout. I would start by placing a sniffer (wireshark) on the connection to see if you can see any problems. If there is a TCP error, you should be able to see it. Also, you can check your router logs, if this is applicable.