Skip to content

ServiceControl Audit no longer crashes after version store reaches maximum size #1945

@mikeminutillo

Description

@mikeminutillo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions