Closed Connection error RRS feed

  • Question

  • We are facing very frequently the Closed Connection error (every 2 hours) for one of the service which loads the 67000 KB file data in to memory and does some matching operation. the service goes down with the following error when the memory usage reach around  1.9 GB . we are not sure about the failure , suspecting memory issue but the error seems to be different. Please can some one give us a hint.

    The underlying connection was closed: Unable to connect to the remote server.:  Server stack trace:     at System.Net.HttpWebRequest.CheckFinalStatus()     at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)     at System.Net.HttpWebRequest.GetRequestStream()     at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessAndSend(IMessage msg, ITransportHeaders headers, Stream inputStream)     at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)     at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessage(IMessage msg)  Exception rethrown at [0]:     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)     at Complinet.Workstation.Remoting.MatchingEngine.get_IndexGenerated()     at Complinet.Workstation.UI.ConfigNaps.populateForm()

    Thursday, July 10, 2014 5:55 AM


  • Use the IIS administration tool to take a look at the Pool Recycling settings. You may have the pool configured to recycle the application when memory usage reaches a certain size (such as 2 GB). If this is the case, then when the limit is reached and the application is recycled, any clients that were connected at that time will experience the "closed connection" error.

    Thursday, July 10, 2014 2:57 PM