locked
Connections to Velocity not closing RRS feed

  • Question

  • Has anyone experienced issues with hung tcp/ip connections from the clients on port 22233? We have a web application operating in a server farm environment that acts as a Velocity client. We have noticed that connections to the Velocity hosts are not getting closed. We aren't experiencing this issue on any other Velocity clients in our system. 

    The connections appear to build up until we start seeing the following: 

    Exception Details: Type = Microsoft.Data.Caching.DataCacheException Message = ErrorCode:Unknown failure in transport layer. Source = CacheBaseLibrary StackTrace = at Microsoft.Data.Caching.WcfTransportChannel.ThrowIfNotCommunicationException(Exception e) at Microsoft.Data.Caching.WcfClientChannel.CreateChannel(EndpointID endpoint) at Microsoft.Data.Caching.WcfClientChannel.SendMessage(EndpointID endpoint, Message message, TimeSpan timeout, WaitCallback callback, Object state, Boolean async) at Microsoft.Data.Caching.WcfClientChannel.Send(EndpointID endpoint, Message message) at Microsoft.Data.Caching.DRM.SendRequest(EndpointID address, RequestBody request) at Microsoft.Data.Caching.RequestBody.Send() at Microsoft.Data.Caching.DRM.SendToDestination(RequestBody request, Boolean recordRequest) at Microsoft.Data.Caching.DRM.SendToDestination(RequestBody request) at Microsoft.Data.Caching.RoutingClient.GetCacheProperties(Boolean versionCheck) at Microsoft.Data.Caching.DataCacheFactory.GetCache(String cacheName) at DistributedCache.VelocityClient.GetCache(String namedCache) at DistributedCache.VelocityClient..ctor(String namedCache) at DistributedCache.DistributedCacheFactory.CreateCache() at XmlProcessorClient.ProductFamilyClient.SearchCache(String productFamilyNumber, Int32[] customerTypes) at XmlProcessorClient.ProductFamilyClient.GetProductFamily(String productFamilyNumber, Int32[] customerTypes) at XmlProcessorClient.ProductFamilyClient.GetProductFamily(String productFamilyNumber, Int32 customerTypeId) at Products.Lib.ProductResults.PopulateProductFamilies(ProductFamily[] productFamilies, Boolean getAdditionalData) in C:\VisualStudio\Projects\common\Products\Lib\ProductResults.cs:line 922 TargetSite = Void ThrowIfNotCommunicationException(System.Exception) InnerException =System.InsufficientMemoryException: Insufficient winsock resources available to complete socket connection initiation. ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full 10.11.0.60:22233 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout) --- End of inner exception stack trace --- at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout) at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout) at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout) at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at Microsoft.Data.Caching.WcfClientChannel.CreateChannel(EndpointID endpoint) Custom Data Collection: URL = http://www.midwayusa.com/browse/BrowseProducts.aspx?pageNum=2&tabId=1&categoryId=17799&categoryString=9315***652***19785***9015***7247*** IP 0 = 10.10.10.25 IP 1 = 10.50.10.25 ----------------------------------------
    Thursday, October 29, 2009 2:32 PM

All replies

  • InnerException =System.InsufficientMemoryException: Insufficient winsock resources available to complete socket connection initiation. ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full 10.11.0.60:22233

    If you see the inner exception here, it reports insufficient memory. Is your client a 32-bit machine? How much space is your client process consuming (since a process has a limitation of ~1.3 GB on a 32-bit machine due to limited address space)?
    Amit. (Velocity Dev, MSFT)
    Thursday, October 29, 2009 5:04 PM
  • What version of OS are you using?

    Do you see there registries and what value do they have?
    HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\TcpTimedWaitDelay
    HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\MaxUserPort


    Do you see any difference comparing them to those of the working client?



    Gan
    Friday, October 30, 2009 5:20 PM