Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: The support homepage carousel is not displaying. We are working toward a resolution.

High CPU usage in Qlik Sense (multiple PostgreSQL processes)

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Seanog_Murphy
Creator III
Creator III

High CPU usage in Qlik Sense (multiple PostgreSQL processes)

Last Update:

Feb 9, 2021 6:42:19 AM

Updated By:

Sonja_Bauernfeind

Created date:

Feb 9, 2021 6:39:24 AM

The CPU spikes after a given timeframe and stays at >95% until the machine is rebooted. The user will also see a large amount of postgreSQL processes consuming a large chunk of CPU collectively.

When the machine is rebooted, the CPU runs as normal for a few days until the issue re-occurs.

 

Environment

 

Resolution

This issue is caused by a defect identified in QB-2734.

If the database contains more than 1000 script file references none of which are considered "orphan", then the FileReferenceMaintenance background worker will go into an infinite loop and try to process the first 1000 entries over and over again. By increasing the value this should break the infinite loop and will hopefully reduce any unnecessary database traffic.

Information provided on this defect is given as is at the time of documenting. For up to date information, please review the most recent Release Notes, or contact support at support.qlik.com with the ID QB-2734 for reference.

 

Workaround:

The following workaround has also been identified:

  1. Run the following query in PGAdmin:
    select Count(*) from "FileReferences" where "Location" like '%\\Script\\%'​
  2. If it gives a number < 1000 then it is not the problem. If it is > 1000, then this can be an issue.
  3. If the value it returns is greater than 1000 you can try setting the ExecutionResultMaintenance.BatchSize repository config file to a value higher than the number that the query returns.
  4. The location of the file is C:\Program Files\Qlik\Sense\Repository/Repository.exe.config and the line you need to edit is:

    <add key="ExecutionResultMaintenance.BatchSize" value="1000" />

  5. Ensure you have made the change in all nodes.

 

Fix Version:

The issue is scheduled (not confirmed) to be fixed in the May 2021 version.

 

Cause

Product Defect ID: QB-2734

 

 

Labels (1)
Version history
Last update:
‎2021-02-09 06:42 AM
Updated by: