Event ID 2022 — Shared Folders (SMB) Server Configuration
Applies To: Windows Server 2008 R2
The Server Message Block (SMB) protocol is what Windows uses to share files, printers, serial ports, and communicate this information between computers. The service must be configured correctly for the server to properly manage shared resources.
Event Details
Product: | Windows Operating System |
ID: | 2022 |
Source: | Server |
Version: | 6.1 |
Symbolic Name: | EVENT_SRV_NO_FREE_CONNECTIONS |
Message: | The server was unable to find a free connection %2 times in the last %3 seconds. This indicates a spike in network traffic. If this is happening frequently, you should consider increasing the minimum number of free connections to add headroom. To do that, modify the MinFreeConnections and MaxFreeConnections for the LanmanServer in the registry. |
Resolve
Modify the MinFreeConnections and MaxFreeConnections parameters
If the server is frequently unable to find a free connection, you should consider increasing the minimum and maximum number of free connections to the server.
To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.
Caution: Incorrectly editing the registry might severely damage your system. Before making changes to the registry, you should back up any valued data.
To increase MinFreeConnections and MaxFreeConnections for the server:
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click to select the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanmanserver\Parameters
- On the Edit menu, point to New, and then click DWORD Value.
- Type MinFreeConnections, and then press Enter.
- Right-click MinFreeConnections, and then click Modify.
- In the Value data box, type the desired value, and then click OK.
- On the Edit menu, point to New, and then click DWORD Value.
- Type MaxFreeConnections, and then press Enter.
- Right-click MaxFreeConnections, and then click Modify.
- In the Value data box, type the desired value, and then click OK.
For additional infoirmation about setting MinFreeConnections and MaxFreeConnections, see https://support.microsoft.com/kb/317249.
Verify
To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.
To verify SMB configuration settings:
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click to select the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanmanserver\Parameters
- Verify that the correct parameters are present and contain the correct values.