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

Database connection max pool reached in Qlik Sense Enterprise on Windows

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

Database connection max pool reached in Qlik Sense Enterprise on Windows

Last Update:

May 7, 2021 2:53:51 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jun 30, 2017 9:55:26 PM

It may be necessary to configure the Repository PostgreSQL database to listen to additional requests from the rim nodes to allow database access to the rim nodes. The number of connections will increase by 110 connections per node.

Based on the above, the central node repository log files will show warnings and errors such as:

ERROR: occurred because all pooled connections were in use and max pool size was reached.
...
Error when committing remaining connection slots are reserved for non-replication superuser connections↵↓The underlying provider failed on Open.↵↓Exception of type 'Repository.Core.Exceptions.TransactionException' was thrown


Environment:

 

To resolve this issue, follow these eight steps: 

  1. Stop all Qlik Sense Services on all nodes
  2. Open the postgresql.conf file located in C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\9.6 (for Qlik Sense June 2017 and higher) 
    Open Notepad with Administrative rights
  3. Search for the string max_connections
  4. Adjust the value here to be 110 x the number of Nodes in Qlik Sense including the Central node
  5. In a multi-node environment, this should be adjusted to the sum of all repository connection pools + 20.
    e.g: A Central node and 2 RIMs would require 350 connections
  6. Search further in the config file for max_connections to ensure that there is only 1 entry for this setting
  7. Save the file
  8. Start all Qlik Sense services on all nodes

See referenced help page section Configuration PostgreSQL multi-node connections

Labels (1)
Contributors
Version history
Last update:
‎2021-05-07 02:53 AM
Updated by: