我正在运行负载测试,以查看 WCF 服务在高峰时间(重负载)期间的性能。我正在使用 Step-Load,我们逐步推送虚拟用户。当我在前几分钟开始运行负载测试时,测试运行顺利,随着负载的增加,一段时间后突然触发以下错误,
“测试方法“XYZ”抛出异常:
System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host".
我尝试了很多在网上找到的解决方案,但没有一个对我有用。我尝试在配置文件中更改默认超时、最大连接数、最大并发连接数等。我真的很感激这方面的任何帮助。