1
我正在運行負載測試以查看高峯時間(重負載)期間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".
我試過很多的解決方案,我在網上找到,但其中非在配置文件爲我工作。我試圖改變默認的超時,MaxConnections最大,maxconcurrent連接等。我真的很感激任何幫助