Request for registry tweak to adjust SMB CA lock limits

Oluver Koskinen 0 Reputation points
2026-09-11T14:53:54.89+00:00

I would like the registry instructions that can adjust the SMB Continuous Availability lock limits, preventing high-density database workloads on SoFS shares from failing with File Lock Exceeded errors.

Windows for business | Windows 365 Enterprise
0 comments No comments

1 answer

Sort by: Most helpful
  1. VPHAN 43,155 Reputation points Independent Advisor
    2026-09-11T15:29:01.27+00:00

    Hi Oluver Koskinen,

    you are encountering File Lock Exceeded errors on your Scale-Out File Server. This is not caused by an SMB Continuous Availability lock limit, as the SMB protocol does not enforce a configurable lock ceiling that generates this specific message. Instead, this error originates from the Microsoft Jet or Access Connectivity Engine on your client machines when a high-density transaction attempts to open more than the default 9,500 concurrent file locks.

    To resolve this, you must modify the registry on the client machines executing the database queries, not the SoFS cluster nodes. Open the Registry Editor on the affected client and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Access Connectivity Engine\Engines\ACE for modern environments, or HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Jet 4.0 for legacy 32-bit applications. Find the MaxLocksPerFile entry, double-click it, select the Decimal base, and increase the value to 50000 or a number large enough to accommodate your specific workload density. Restart the client application to finalize the configuration, allowing your database engine to process massive transaction locks over the SMB share without crashing.

    Hope this answer has brought you some useful information. If it did, please hit “accept answer”. Should you have any questions, feel free to leave a comment.

    VPHAN

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.