.NET应用程序中的Java.net.SocketException连接重置错误 [英] Java.net.SocketException connection reset error in .net application

查看:123
本文介绍了.NET应用程序中的Java.net.SocketException连接重置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个n层(.net)Web应用程序,其中有一个Web层-> App层->数据库.

We have a n-tier (.net) web application where we have a Web tier -> App tier -> Database.

一切正常,直到我们去进行负载测试(使用jmeter). 当我们模拟100个并发用户时,经过3 -4分钟. jmeter开始记录SocketException,重置连接.当我们检查应用程序日志(我们将所有异常记录在应用程序内部)和系统事件中时,找不到任何东西.

Everything worked fine until we went for load testing (using jmeter). When we simulated 100 concurrent users, after 3 -4 min. jmeter started logging SocketException, connection reset. When we checked application logs (we logs all the exceptions inside application) and system events, we could not find anything.

我们尚未针对网络层性能采取任何特殊措施.但是在作为wcf应用程序的App层上,我们使用了每次调用/多个并发性.我们在应用程序层上使用了以下配置:

We have not taken any special measures for performance on web tier. But on App tier which is a wcf application, we have used per-call/multiple concurrency. We have used following configuration on app tier:

        <serviceThrottling
           maxConcurrentCalls     = "200"
           maxConcurrentSessions  = "200"
           maxConcurrentInstances = "200"/>

. .

    <binding name="defaultNetTcpBinding" closeTimeout="00:10:00" sendTimeout="00:10:00" receiveTimeout="00:10:00" openTimeout="00:10:00" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647"
             maxConnections="200" listenBacklog="200">

除此问题外,我们的应用层使用率也较高(50-60%).以下是我们3个VM(每层一个)的配置

Web服务器(数量= 1)处理器Intel Xeon CPU X5675 @ 3.07 GHz 2.19 GHz

Web Server (Quantity = 1) Processor Intel Xeon CPU X5675 @3.07 GHz 2.19 GHz

Number of Cores (Virtual)   8

RAM 8GB

Operating System    Windows Sever 2012 Standard

Processor Type  64 Bit

Softwares Installed NET Framework 4.5

App Server(数量= 1) 处理器Intel Xeon CPU X5675 @ 3.07 GHz 3.07 GHz

App Server (Quantity = 1) Processor Intel Xeon CPU X5675 @3.07 GHz 3.07 GHz

Number of Cores (Virtual)   8

RAM 8GB

Operating System    Windows Sever 2012 Standard

Processor Type  64 Bit

Softwares Installed NET Framework 4.5

数据库服务器(数量= 1) 处理器Intel Xeon CPU E7-4830v2 @ 2.20 GHz 2.19 GHz

DB Server (Quantity =1) Processor Intel Xeon CPU E7-4830v2 @ 2.20 GHz 2.19 GHz

Number of Cores (Virtual)   8

RAM 8GB

Operating System    Windows Sever 2012 Standard

Processor Type  64 Bit

Softwares Installed Microsoft SQL Sever 2014

推荐答案

IIS日志有助于深入探究根本原因.我们发现遇到套接字问题的所有请求中都有网络连接异常.

IIS logs were helpful in digging into the root cause. We found that there were network connection exceptions in all the request where we were facing Socket issues.

这篇关于.NET应用程序中的Java.net.SocketException连接重置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆