Skip to content
Snippets Groups Projects
Commit e12660cc authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Show instructions on how to reset performance counters cache in log

Fixes #61
parent 6148ce7e
No related branches found
No related tags found
No related merge requests found
......@@ -321,6 +321,10 @@ namespace ATxService
/// Set up the performance monitor objects (CPU, Disk I/O, ...).
/// </summary>
private void InitializePerformanceMonitors() {
var lodctr_msg = "Occasionally the performance counters cache becomes corrupted " +
"and needs to be reset manually. To do this, run the following " +
"command from a shell with elevated privileges:\n\n lodctr /r\n\n";
try {
_cpu = new Cpu {
Interval = 250,
......@@ -340,6 +344,7 @@ namespace ATxService
}
catch (Exception ex) {
Log.Error("Unexpected error initializing CPU monitoring: {0}", ex.Message);
Log.Error(lodctr_msg);
throw;
}
......@@ -358,6 +363,7 @@ namespace ATxService
Log.Error("Unexpected error initializing PhysicalDisk monitoring: {0}\n" +
"Please make sure the service account is a member of the local" +
"group [Performance Monitor Users]!", ex.Message);
Log.Error(lodctr_msg);
throw;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment