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

Qlik Sense Repository keeps restarting, Performance Counter issues in Windows

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

Qlik Sense Repository keeps restarting, Performance Counter issues in Windows

Last Update:

Dec 6, 2022 7:07:09 AM

Updated By:

Sonja_Bauernfeind

Created date:

Feb 1, 2019 8:47:27 AM

Qlik Sense Repository service will log performance counters, and set them up on startup. Unfortunately sometimes the base counters are corrupt so the start can't proceed.

The error in the logs:

fatal exception during startup Cannot load Counter Name data because an invalid index '' was read from the registry. at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)?? ? at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)?? [...] at System.Threading.ThreadHelper.ThreadStart() 3facc7ff-8275-4847-b3b7-338d32c4d1c5 its the repo checking the counter which doesn't exist

Qlik Sense April 2019 will log information including instructions to resolve the issue. See the related Release Notes for ID QLIK-92800:

"Failed to initialize usage of Windows Performance Counters. Make sure that performance counters are enabled or try rebuilding them with "lodctr /R" 

 

 

Resolution


Option 1

A workaround is provided in repairing the Windows Performance Counters:

  1. Open an elevated command prompt (run as administrator)
  2. Rebuild the counters with the following commands: 
       
    cd c:\windows\system32
    lodctr /R
    cd c:\windows\sysWOW64
    lodctr /R

    If you get the response Error: Unable to rebuild performance counter setting from system backup store, error code is 2, run the same command once more.

    A successful run will say:

    Info: Successfully rebuilt performance counter setting from system backup store


Pitfalls:

If you get as a return:

Error: Unable to rebuild performance counter setting from system backup store, error code is 5

then your prompt was not elevated. Elevate the command prompt with administrator permissions.

If the commands are successful yet symptoms persist, perform Option 2.
 

Option 2 

Ensure that the counters are not disabled in the registry

The counters may be disabled via registry settings. Please check the following registry locations to ensure that the counters have not been disabled.

HKLM\System\CurrentControlSet\Services\%servicename%\Performance

%servicename% represents any service with a performance counter. For example: PerfDisk, PerfOS, etc.

There may be registry keys for "DisablePerformanceCounters" in any of these locations. As per the following TechNet article, this value should be set to 0. If the value is anything other than 0 the counter may be disabled.

Disable Performance Counters

http://technet.microsoft.com/en-us/library/cc784382.aspx

  • A value of 1 means the counter is disabled.
  • A value of 2 means the 32-bit counter is disabled.
  • A value of 4 means the 64-bit counter is disabled.
  • Please make sure that none of the Perfxxxxx are have a key within them called "DisablePerformanceCounters". If they do, please make sure that the value is set to 0.

ref. https://support.microsoft.com/en-us/help/2554336/how-to-manually-rebuild-performance-counters-for-wi...

Once done, return to Option 1 

 

Environment:

Qlik Sense Enterprise on Windows 

Labels (1)
Version history
Last update:
‎2022-12-06 07:07 AM
Updated by: