article Increasing Windows TCP socket limits

up.time is a heavily network-dependent application and requires many short-lived socket connections to be running simultaneously.  At times this socket load can reach or exceed the default Windows monitoring station socket limit.  Symptoms of socket limits within up.time include:

  • Random service outages stating connection errors.
  • Random connection errors appearing in the Apache error_log file.
  • Errors such as Monitor failed: Software caused connection abort: recv failed.

To increase the Windows socket limits and allow sockets to be freed up more quickly, create 2 keys in the Windows registry using regedit.

 

Within HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters, create these 2 DWORD values:

  • MaxUserPort: this value will increase the number of ephemeral ports that can by dynamically allocated to clients.  Set the value to any decimal between 5000 and 65534.  Higher counts will allow more concurrent sockets to be available to up.time.
  • TcpTimedWaitDelay: this value will reduce the length of time that a connection stays in the TIME_WAIT state when the connection is being closed.  While a connection is in the TIME_WAIT state, the socket pair cannot be re-used.  Lower values allow sockets to be released more quickly for re-use by up.time.  Set the value to a decimal number between 30 and 240.  Note that you will need to restart the computer for the system changes to take effect.  For more information, please refer to Avoiding TCP/IP Port Exhaustion on the Microsoft website.

Related Articles


Problems adding an Agent to up.time

RatingViews
article

By: uptime Support | Date Created: 6-15-2006 | Last Modified: 8-9-2011 | Index: 083

  7961

Error while pinging: Failed to create raw socket

RatingViews
article

This error is commonly caused by permission problems on the icmp executable that up.time uses to verify the PING status for a monitored element. To resolve this issue review the information below...

By: uptime Support | Date Created: 12-31-1969 | Last Modified: 8-31-2011 | Index: 279

  6728

Adding up.time port exceptions to Windows firewall

RatingViews
article

By: uptime Support | Date Created: 10-25-2005 | Last Modified: 7-13-2011 | Index: 024

  6533

Windows Executable Fails to Properly Initialize

RatingViews
article

By: uptime Support | Date Created: 9-10-2007 | Last Modified: 6-27-2011 | Index: 214

  2802

Installing the up.time agent on Windows

RatingViews
article

By: uptime Support | Date Created: 6-12-2006 | Last Modified: 7-25-2011 | Index: 079

  6417

User Comments



No comments have been posted.

Copyright © 2021 IDERA, Inc.   Legal   Privacy Statement