Performance counter updating error exchange 2016
You need to have a closer look at a previous shown event: Performance counter updating error. Invalid Operation Exception: Custom counters file view is out of memory. There is no way, at least we couldn’t find one, to calculate the needed value. In my environment the following needed to be tweaked: Add-PSSnapin -Name Microsoft. We decided to edit the Registry as we are using Desired State Configuration and this needed the least administrative effort.
We were hoping that a potential issue was already fixed in the latest version. After a while we finally found the root cause for the unhandled exception, which caused the store worker processes to crash. You can read more about how File Mapping Size works here, but the main statement is the following: “Memory in the global shared memory cannot be released by individual performance counters, so eventually global shared memory is exhausted if a large number of performance counter instances with different names are created.” Now that we’ve found the root cause we need to fix it by increasing the memory for the affected performance counters. Note: This will increase the default value for ALL performance counters, which might cause other issues!
I saw this issue on servers with only Mailbox Role installed.
Within the Exchange Management Shell, I’ve run the following commands: add-pssnapin Microsoft. Ex Performance Counter.set_Raw Value(Int64 value) Last worker process info : System.