Submit a ticketCall us

WebinarDatabase Roundtable – Expert Database Professionals Feel Your Pain

In this video broadcast, Head Geek™ Tom LaRock is joined by Karen Lopez, Tim Chapman, and David Klee. They’ve known each other for many years, so this discussion was like four friends getting together to talk data and databases. They discussed diagnostic data collection, common performance root causes, reactive tuning versus proactive, and more. Join us for an engaging discussion on these topics! Plus, Tom LaRock will be available to answer your questions live.

Register now.

Home > Success Center > Server & Application Monitor (SAM) > SAM - Knowledgebase Articles > How to increase ephemeral port allowances

How to increase ephemeral port allowances

Created by William Muhle, last modified by Jie Y Lee on Feb 05, 2018

Views: 4,816 Votes: 19 Revisions: 13

Overview

By default, Microsoft windows limits the port utilization that can be spun up for a TCP connection. They limit it via making it so that the server uses ports between 1024 and 5000.  This can often times cause issues on the Orion server due to the amount 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 however.

Environment

  • Any SAM installation
  • Any Orion installation

Steps

In order to increase the port allowance within windows, please do the following:

 

1. Click start -> run

2. Type in Regedit and hit enter.

3. Once the Regedit has opened, navigate to the following key and right click on Parameters:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

4. Select New -> DWORD (32) bit value.

5. Once the new value has been created, rename it to MaxUserPort (** Be aware that the capitalization matters).

6. Right click the new setting and select Modify.

7. 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 in input in there will be the port number that windows is now allowed to go up to in the connection utilization.

8. 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 Emphemeral Ports in use

 

 

Last modified

Tags

Classifications

Public