<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Qlik Sense Repository or Proxy unable to perform operation due to buffer space TCP Port Exhaustion in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-or-Proxy-unable-to-perform-operation-due/ta-p/1715376</link>
    <description>&lt;P&gt;When the Repository is unable to perform an operation but is not able to assign an internal port to handle the operation, then it will output this error in the&amp;nbsp;&lt;STRONG&gt;Repository and/or Proxy&lt;/STRONG&gt;&amp;nbsp;&amp;gt; &lt;STRONG&gt;Trace&lt;/STRONG&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;STRONG&gt;System_Repository&lt;/STRONG&gt;&amp;nbsp;log:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Unexpected error in ExecuteGet&amp;nbsp;&amp;nbsp; &amp;nbsp;An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full&lt;BR /&gt;Unable to read data from the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The underlying provider failed on Open.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;At the same time, the following warning will be found in Windows Event System Log:&amp;nbsp;&lt;/DIV&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;STRONG&gt;Type of entry:&lt;/STRONG&gt; Warning&lt;BR /&gt;&lt;STRONG&gt;Source:&lt;/STRONG&gt; Tcpip&lt;BR /&gt;&lt;STRONG&gt;Message&lt;/STRONG&gt;: &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;A request to allocate an ephemeral port number from the global TCP port space has failed due to all such ports being in use.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Type of entry:&lt;/STRONG&gt; Warning&lt;BR /&gt;&lt;STRONG&gt;Source:&lt;/STRONG&gt; Tcpip&lt;BR /&gt;&lt;STRONG&gt;Message:&lt;/STRONG&gt; &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;TCP/IP failed to establish an outgoing connection because the selected local endpoint was recently used to connect to the same remote endpoint. This error typically occurs when outgoing connections are opened and closed at a high rate, causing all available local ports to be used and forcing TCP/IP to reuse a local port for an outgoing connection. To minimize the risk of data corruption, the TCP/IP standard requires a minimum time period to elapse between successive connections from a given local endpoint to a given remote endpoint.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI style="margin-left: 40px;"&gt;&lt;SPAN&gt;Qlik Sense Enterprise - All versions&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 class="qlik-migrated-tkb-headings"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;This signifies that the Repository was unable to perform an operation due to the lack of an internal port on the server, which it uses to handle the routing of different requests.&lt;BR /&gt;&lt;BR /&gt;By adjusting the &lt;STRONG&gt;MaxUserPort&lt;/STRONG&gt; registry key (&lt;A href="https://technet.microsoft.com/en-us/library/cc938196.aspx" target="_blank" rel="noopener"&gt;https://technet.microsoft.com/en-us/library/cc938196.aspx&lt;/A&gt;), we are allocating more internal ports available for the OS.&lt;BR /&gt;&lt;BR /&gt;If further issues present, then the system may need to have an adjusted value for the&amp;nbsp;TcpTimedWaitDelay registry key (&lt;A href="https://technet.microsoft.com/en-us/library/cc938217.aspx" target="_blank" rel="noopener"&gt;https://technet.microsoft.com/en-us/library/cc938217.aspx&lt;/A&gt;),&amp;nbsp;which may also be effective in dropping old connections which are taking up internal TCP ports.&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Resolution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Open regedit&lt;/LI&gt;
&lt;LI&gt;Navigate to&amp;nbsp;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters&lt;/LI&gt;
&lt;LI&gt;Either:
&lt;OL&gt;
&lt;LI&gt;Edit the existing&amp;nbsp;MaxUserPort entry to a higher value. The default value is 5,000 and the maximum value is&amp;nbsp;65,534.&lt;/LI&gt;
&lt;LI&gt;Create a DWORD Entry, edit the entry, and enter a decimal value:&lt;BR /&gt;
&lt;DIV id="tinyMceEditorSonja_Bauernfeind_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maxuserport.png" style="width: 331px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184046iD5174C8B160FB59F/image-size/large?v=v2&amp;amp;px=999" role="button" title="maxuserport.png" alt="maxuserport.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;In addition, add the following values:&lt;/SPAN&gt;
&lt;PRE&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpTimedWaitDelay"=dword:0000001e
"TcpNumConnections"=dword:00fffffe
"TcpMaxDataRetransmissions"=dword:00000005&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Reboot the server for registry changes to take effect.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;BLOCKQUOTE class="quote"&gt;The settings must be applied to all nodes.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To verify the port range increase:&lt;/P&gt;
&lt;P&gt;Open a command prompt and enter the following two commands:&lt;/P&gt;
&lt;PRE&gt;c:\netsh int ipv4 show dynamicport tcp&lt;BR /&gt;c:\netsh int ipv6 show dynamicport tcp&lt;/PRE&gt;
&lt;P&gt;To check how many ports are actively established:&lt;/P&gt;
&lt;PRE&gt;c:\netstat -an | find /c "ESTABLISHED"&lt;/PRE&gt;
&lt;P&gt;These examples will not show all &lt;EM&gt;dormant&amp;nbsp;&lt;/EM&gt;ports.&lt;/P&gt;
&lt;P&gt;If you suspect this is the problem, you can measure the port&amp;nbsp;consumption using this&amp;nbsp;batch file.&lt;/P&gt;
&lt;P&gt;The example is set to capture once a minute and runs until terminated.&amp;nbsp;The text output can be loaded into Qlik Sense app for quick analysis&lt;/P&gt;
&lt;PRE&gt;:loop&lt;BR /&gt;set /p=%date%, %time%, %computername%, &amp;lt;nul &amp;gt;&amp;gt;"&amp;lt;your file system &amp;gt;&lt;A target="_blank" rel="noopener"&gt;\ports.log&lt;/A&gt;"&lt;BR /&gt;netstat -an |find /c "ESTABLISHED" &amp;gt;&amp;gt; "&amp;lt;your file system &amp;gt;&lt;A target="_blank" rel="noopener"&gt;\ports.log&lt;/A&gt;"&lt;BR /&gt;timeout 60&lt;BR /&gt;goto loop&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Oct 2025 05:58:30 GMT</pubDate>
    <dc:creator>Andre_Sostizzo</dc:creator>
    <dc:date>2025-10-07T05:58:30Z</dc:date>
    <item>
      <title>Qlik Sense Repository or Proxy unable to perform operation due to buffer space TCP Port Exhaustion</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-or-Proxy-unable-to-perform-operation-due/ta-p/1715376</link>
      <description>&lt;P&gt;When the Repository is unable to perform an operation but is not able to assign an internal port to handle the operation, then it will output this error in the&amp;nbsp;&lt;STRONG&gt;Repository and/or Proxy&lt;/STRONG&gt;&amp;nbsp;&amp;gt; &lt;STRONG&gt;Trace&lt;/STRONG&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;STRONG&gt;System_Repository&lt;/STRONG&gt;&amp;nbsp;log:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Unexpected error in ExecuteGet&amp;nbsp;&amp;nbsp; &amp;nbsp;An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full&lt;BR /&gt;Unable to read data from the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The underlying provider failed on Open.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;At the same time, the following warning will be found in Windows Event System Log:&amp;nbsp;&lt;/DIV&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;STRONG&gt;Type of entry:&lt;/STRONG&gt; Warning&lt;BR /&gt;&lt;STRONG&gt;Source:&lt;/STRONG&gt; Tcpip&lt;BR /&gt;&lt;STRONG&gt;Message&lt;/STRONG&gt;: &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;A request to allocate an ephemeral port number from the global TCP port space has failed due to all such ports being in use.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Type of entry:&lt;/STRONG&gt; Warning&lt;BR /&gt;&lt;STRONG&gt;Source:&lt;/STRONG&gt; Tcpip&lt;BR /&gt;&lt;STRONG&gt;Message:&lt;/STRONG&gt; &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;TCP/IP failed to establish an outgoing connection because the selected local endpoint was recently used to connect to the same remote endpoint. This error typically occurs when outgoing connections are opened and closed at a high rate, causing all available local ports to be used and forcing TCP/IP to reuse a local port for an outgoing connection. To minimize the risk of data corruption, the TCP/IP standard requires a minimum time period to elapse between successive connections from a given local endpoint to a given remote endpoint.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI style="margin-left: 40px;"&gt;&lt;SPAN&gt;Qlik Sense Enterprise - All versions&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 class="qlik-migrated-tkb-headings"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;This signifies that the Repository was unable to perform an operation due to the lack of an internal port on the server, which it uses to handle the routing of different requests.&lt;BR /&gt;&lt;BR /&gt;By adjusting the &lt;STRONG&gt;MaxUserPort&lt;/STRONG&gt; registry key (&lt;A href="https://technet.microsoft.com/en-us/library/cc938196.aspx" target="_blank" rel="noopener"&gt;https://technet.microsoft.com/en-us/library/cc938196.aspx&lt;/A&gt;), we are allocating more internal ports available for the OS.&lt;BR /&gt;&lt;BR /&gt;If further issues present, then the system may need to have an adjusted value for the&amp;nbsp;TcpTimedWaitDelay registry key (&lt;A href="https://technet.microsoft.com/en-us/library/cc938217.aspx" target="_blank" rel="noopener"&gt;https://technet.microsoft.com/en-us/library/cc938217.aspx&lt;/A&gt;),&amp;nbsp;which may also be effective in dropping old connections which are taking up internal TCP ports.&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Resolution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Open regedit&lt;/LI&gt;
&lt;LI&gt;Navigate to&amp;nbsp;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters&lt;/LI&gt;
&lt;LI&gt;Either:
&lt;OL&gt;
&lt;LI&gt;Edit the existing&amp;nbsp;MaxUserPort entry to a higher value. The default value is 5,000 and the maximum value is&amp;nbsp;65,534.&lt;/LI&gt;
&lt;LI&gt;Create a DWORD Entry, edit the entry, and enter a decimal value:&lt;BR /&gt;
&lt;DIV id="tinyMceEditorSonja_Bauernfeind_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maxuserport.png" style="width: 331px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184046iD5174C8B160FB59F/image-size/large?v=v2&amp;amp;px=999" role="button" title="maxuserport.png" alt="maxuserport.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;In addition, add the following values:&lt;/SPAN&gt;
&lt;PRE&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpTimedWaitDelay"=dword:0000001e
"TcpNumConnections"=dword:00fffffe
"TcpMaxDataRetransmissions"=dword:00000005&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Reboot the server for registry changes to take effect.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;BLOCKQUOTE class="quote"&gt;The settings must be applied to all nodes.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To verify the port range increase:&lt;/P&gt;
&lt;P&gt;Open a command prompt and enter the following two commands:&lt;/P&gt;
&lt;PRE&gt;c:\netsh int ipv4 show dynamicport tcp&lt;BR /&gt;c:\netsh int ipv6 show dynamicport tcp&lt;/PRE&gt;
&lt;P&gt;To check how many ports are actively established:&lt;/P&gt;
&lt;PRE&gt;c:\netstat -an | find /c "ESTABLISHED"&lt;/PRE&gt;
&lt;P&gt;These examples will not show all &lt;EM&gt;dormant&amp;nbsp;&lt;/EM&gt;ports.&lt;/P&gt;
&lt;P&gt;If you suspect this is the problem, you can measure the port&amp;nbsp;consumption using this&amp;nbsp;batch file.&lt;/P&gt;
&lt;P&gt;The example is set to capture once a minute and runs until terminated.&amp;nbsp;The text output can be loaded into Qlik Sense app for quick analysis&lt;/P&gt;
&lt;PRE&gt;:loop&lt;BR /&gt;set /p=%date%, %time%, %computername%, &amp;lt;nul &amp;gt;&amp;gt;"&amp;lt;your file system &amp;gt;&lt;A target="_blank" rel="noopener"&gt;\ports.log&lt;/A&gt;"&lt;BR /&gt;netstat -an |find /c "ESTABLISHED" &amp;gt;&amp;gt; "&amp;lt;your file system &amp;gt;&lt;A target="_blank" rel="noopener"&gt;\ports.log&lt;/A&gt;"&lt;BR /&gt;timeout 60&lt;BR /&gt;goto loop&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Oct 2025 05:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-or-Proxy-unable-to-perform-operation-due/ta-p/1715376</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2025-10-07T05:58:30Z</dc:date>
    </item>
  </channel>
</rss>

