一台web server,一台 Session state server。
web server 没几个用户访问,开始没有问题,十几分钟之后,就无法访问网站,日志提示:
state server starts listening with 3 listeners
the state server has closed an expired tcp/ip connection
服务器是win server 2012。
以下文章没有解决问题
http://www.cnblogs.com/a311300/archive/2010/02/02/1662151.html
错误信息:
系统日志描述:The state server has closed an expired TCP/IP connection. The IP address of the client is 127.0.0.1. The expired Read operation began at 02/02/2010 14:59:19.
解决办法:
步骤1:新增一个属性 <sessionState stateNetworkTimeout="10" />
2.修改注册表
a.停止 ASP.NET 状态服务器服务。
b.单击 开始,单击 运行,键入 Regedt32.exe,然后单击 确定 以启动注册表编辑器。
c.在注册表中找到以下项:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters
添加一个名为 SocketTimeout 的 DWORD 值。 设置一个正整数,先设置为20,表示新的 TCP/IP 超时以20秒为单位。
退出注册表编辑器。
d.重新启动 ASP.NET 状态服务器服务
来源:https://q.cnblogs.com/q/77225/