Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Qlik Sense experiences port exhaustion issue during high load

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Andre_Sostizzo
Digital Support
Digital Support

Qlik Sense experiences port exhaustion issue during high load

Last Update:

May 10, 2021 6:24:09 AM

Updated By:

Sonja_Bauernfeind

Created date:

Nov 11, 2015 1:47:47 AM

TCP/IP port exhaustion can occur if the server is engaging in an unusually high number of TCIP/IP socket connections. If all ports are allocated to client applications then the client experiences a condition known as TCP/IP port exhaustion.  When TCP/IP port exhaustion occurs, client port reservations cannot be made and errors will occur in Qlik Sense that attempt to connect to a service via TCP/IP sockets.

Port exhaustion is more likely to occur under high load conditions than under normal load conditions such as pushing a lot of concurrent users to Qlik Sense.

Below is the error you will see that indicates this issue from PostgresSQL :  " FATAL: remaning connection slots are reserved for non-replication superuser connections "

User-added image

Error 4227, Tcpip is shown and Unable to read data from the transport connection
Error Transport channel is closed.??Transport channel is closed
Error No connection could be made because the target machine actively refused it 

Error:The underlying connection was closed: The connection was closed unexpectedly

 

 

Resolution:


To increase the upper range of ephemeral ports that are dynamically allocated to client TCP/IP socket connections.
 

  • Start Registry Editor.
  • Browse to, and then click the following key in the registry:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  • On the Edit menu, click NewDWORD 32bit Value, and then add the following registry value to increase the number of ephemeral ports that can by dynamically allocated to clients:
    • Value name : MaxUserPort
    • Value data: <Enter a decimal value 65534 here
  • If the MaxUserPort does not work please include TcpTimeWaitDelay
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters and set the value TcpTimedWaitDelay to 30 seconds. 
    On the Edit menu, click NewDWORD 32bit Value, and then add the following registry value to add a time delay to allow ports to close:

  • Value name : TcpTimedWaitDelay

  • Value data: <Enter a decimal value 30 here

  • Close Registry Editor.

This has been tested on Windows Server 2012/2012 R2 and Windows Server 2016  


Note:

  • You must restart your computer for this change to take effect.
Labels (1)
Version history
Last update:
‎2021-05-10 06:24 AM
Updated by: