The error message below can sometimes appear in the SOC after an installation of the Apprenda Platform. This message is due to the performance counters on that particular machine being corrupted. This issue is very easy to fix but it does require a reinstall of the platform.
What are Performance Counters and Why Does Apprenda Need Them?
Performance counters can monitor system components such as processors, memory, and network I/O. If you use performance counters in your application, they can publish performance-related data to compare them against acceptable criteria.
Apprenda uses performance counters in order to throttle guest applications' workloads and monitor usage across them. For more information on Resource Throttling, you can refer to the following documentation page: http://docs.apprenda.com/current/resource-management
Error Message
-----------------LogMessage----------------- An exception was raised while retrieving the PhysicalHost.CpuThrottling.TotalCpuThreshold setting. Throttling will be enabled until the setting is successfully retrieved. -----------------EndLogMessage----------------- -----------------SurfaceException (System.InvalidOperationException)----------------- Cannot load Counter Name data because an invalid index '' was read from the registry. Server stack trace: at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp) at System.Diagnostics.PerformanceCounterLib.get_NameTable() at System.Diagnostics.PerformanceCounterLib.get_CategoryTable() at System.Diagnostics.PerformanceCounterLib.CounterExists(String category, String counter, Boolean& categoryExists) at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter) at System.Diagnostics.PerformanceCounter.InitializeImpl() at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly) at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName) at Apprenda.SaaSGrid.SMART.PhysicalHost.CpuThrottling.CpuThrottler.b__23() at System.Lazy`1.CreateValue() Exception rethrown at [0]: at System.Lazy`1.get_Value() at Apprenda.SaaSGrid.SMART.PhysicalHost.CpuThrottling.CpuThrottler.get_ShouldThrottle() -----------------EndSurfaceException-----------------
Resolution
In order to recreate the corrupted performance counters, run the following command from the command prompt: run lodctr /r
Comments