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

      • Change Reset Password Button Text

        Change the text of the "Reset Password" button on the UW Login Page How to change the text of the Reset Password button on the Login Page. Login to webNetwork and open webAdmin on your Relay Central Server Expand Customization Center Expand Tenants ...
      • Remove Reset Password Button From Login Page

        Remove the Reset Password Button from the Login Page How to remove the Reset Password button from the Unified Workspace login page. Login to webNetwork and open webAdmin on your Relay Central Server Expand Customization Center Expand Tenants Expand ...
      • Lenovo Unified Workspace End-of-Life Questions and Answers

        As of January 31st 2024, Lenovo Unified Workspace (formerly Stoneware WebNetwork) is no longer supported. This means that we no longer provide licenses, downloads, updates, patches, or technical assistance for this product. If you have any questions ...
      • 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 ...
      • 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 ...