TIME_WAITs in Netstat report

TIME_WAITs in Netstat report

ISSUE

When I run a netstat, I see most of the connections to our UW server are in TIME_WAIT status.  How can I get those to close and open ports for connection again?


SOLUTION


By default the TCP Timed Wait Delay is 240 seconds.  When you find that your connections are tying up the ports/sockets and preventing further connections, you can configure the Timed Wait Delay to close more quickly.

By default the number of dynamic ports available to TCP/IP applications is limited to 5000.

Reducing the TCP Timed Wait Delay will remove the high number of ports in TIME_WAIT status, by returning the ports to use faster.  increasing the number of available dynamic ports, increase the total number of ports available for user connections

Both values can be increased by adding some entries to the Windows Registry:


Use the regedit command to access the following key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters


Create the following REG_DWORD values, if they do not already exist.  Adjust the value data to match what is below, if the REG_DWORD values already exist.
  1. Value: TcpTimedWaitDelay
    Data Type: REG_DWORD
    Value data: 30 (decimal)

  2. Value: MaxUserPort
    Data Type: REG_DWORD
    Value data: 65534 (decimal)

    Can't find the KB

    Unable to find the KB to address your issue ?  

      • Recent Articles

      • Lenovo Unified Workspace End-of-Life Questions and Answers

        Will the shutdown of LUW servers and access to downloads affect my server licensing? No, the shutdown of the customer servers and access to the product and licensing downloads will not affect your server licensing. This license is downloaded and ...
      • How do I determine my Unified Workspace license expiration date?

        The best method for determining the licensing information including the expiration date of your Unified Workspace license: Login to your 8090 management console on each server This may take remoting into each LUW server and relay, opening a browser, ...
      • Lenovo Unified Workspace 7.0.2.13 Released

        Highlights of Unified Workspace 7.0.2.13 Before you install: Please view the installation notes here. 7.0.2.13 requires a 7.0 license file. Below is a list of enhancements and fixes released in Unified Workspace 7.0.2.13 Fixed external storage ...
      • LanSchool Documentation Guides

        LanSchool Classic Teacher Console The LanSchool Teacher Console is the interface teachers will use to manage their classroom and students. It contains all the tools necessary for a teacher to effectively interact with students and create a ...
      • Lenovo Unified Workspace 7.0.1.41 Released

        Highlights of Unified Workspace 7.0.1.41 Before you install: Please view the installation notes here. 7.0.1.41 requires a 7.0 license file. Below is a list of enhancements and fixes for Unified Workspace 7.0.1.41 Updated Log4j Updated Java Updated ...
      • Related Articles

      • How do I use Netstat to see connections

        Netstat has some very useful command line switches that help show the connections into a server.  If you are seeing many TCP TIME_WAITs that are not going away then that tends to indicate an issue, many times a box low on resources tends to build up ...
      • Latest Schema Report

        Schema report for the latest version of Unified Workspace can be downloaded here.. You can view your server's current Schema Report by going to https://<ServerAddress>/swAdmin/schemaReport.jsp keywords:  schema dump, webNetwork, wN, directory
      • Time Sync Causing OTP Failure

        Issue: The customer is having issues with OTP not working from stand-alone relay servers, such as in the DMZ. Solution: Check the server time on stand-alone relay.  It's possible the time is out of sync from the internal server.  OTP relies on the ...
      • Time Sync causing Cluster Issues

        Issue: The customer is having issues with the cluster going out of sync causing various issues. Examples: webRDP giving and Unknown Error Users unable to authenticate UW just running slowly in general Customer will rebuild the cluster, only to have ...
      • Time windows allows for Service Shutdown

        Issue: Can the time windows gives a service to shut down before it kills the service be increased? Solution: Yes, the following information comes from the Microsoft URL : http://support.microsoft.com/kb/146092 To specify the wait time, do the ...