Applications Systems
How to increase ephemeral port allowances
How to increase ephemeral port allowances by changing the 'maxuserport' in the registry.
First published date
Last published date
Overview
By default, Microsoft windows limit the port utilization that can be spun up for a TCP connection. They limit it by making it so that the server uses ports between 1024 and 5000. This can oftentimes cause issues on the Orion server due to the number of open connections that we require in order to gather up all the information that we need from nodes.
The error that you will end up seeing if you are running into this problem is generally as follows:
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
You can increase the number of ports that the Windows server is able to utilize.
Product section
Resolution
In order to increase the port allowance within windows, please do the following:
- Click start -> run
- Type in Regedit and hit enter.
- Once the Regedit has opened, navigate to the following key and right-click on Parameters:
-
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
-
- Select New -> DWORD (32) bit value.
- Once the new value has been created, rename it to MaxUserPort (** Be aware that the capitalization matters).
- Right-click the new setting and select Modify.
- Put a tick mark in the Decimal section under Base, and then input a value between 5000 and 65534 in the Value data section. The number you input in there will be the port number that Windows is now allowed to go up to in the connection utilization.
- Exit the registry editor and reboot the server.
For more information, you may visit:
https://technet.microsoft.com/en-us/library/cc938196.aspx
Pushing out the port allowances is not a true fix in most cases. Please see the following article to troubleshoot the cause of the increased TCP port usage:
Check the number of ephemeral ports in use
Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment. You elect to use third-party content at your own risk, and you will be solely responsible for the incorporation of the same if any.