Under under high load, ServiceControl Audit will run for a while and then crash with the following error:
The version store for this instance (0) has reached its maximum size of 1023Mb. It is likely that a long-running transaction is preventing cleanup of the version store and causing it to build up in size. Updates will be rejected until the long-running transaction has been completely committed or rolled back.
Workaround
If you run into this problem you can reduce the concurrency on the ServiceControl Audit instance to make it more stable. Add the following into the ServiceControl.Audit.exe.config appSettings:
<add key="ServiceControl.Audit/MaximumConcurrencyLevel" value="5" />
If this key is not present, the system will use the default value of 10. Reducing concurrency to 5 will reduce the pressure on the embedded database and stabilize the system.
This may cause the audit queue to grow continuously as the audit instance is no longer able to keep up with load. If that happens, consider adding a 2nd audit instance to your installation.
Under under high load, ServiceControl Audit will run for a while and then crash with the following error:
Workaround
If you run into this problem you can reduce the concurrency on the ServiceControl Audit instance to make it more stable. Add the following into the ServiceControl.Audit.exe.config appSettings:
If this key is not present, the system will use the default value of 10. Reducing concurrency to 5 will reduce the pressure on the embedded database and stabilize the system.
This may cause the audit queue to grow continuously as the audit instance is no longer able to keep up with load. If that happens, consider adding a 2nd audit instance to your installation.