Share via


Event ID 2022 — Shared Folders (SMB) Server Configuration

Applies To: Windows Server 2008

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.0
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:

  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click to select the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanmanserver\Parameters
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type MinFreeConnections, and then press Enter.
  5. Right-click MinFreeConnections, and then click Modify.
  6. In the Value data box, type the desired value, and then click OK.
  7. On the Edit menu, point to New, and then click DWORD Value.
  8. Type MaxFreeConnections, and then press Enter.
  9. Right-click MaxFreeConnections, and then click Modify.
  10. 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:

  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click to select the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanmanserver\Parameters
  3. Verify that the correct parameters are present and contain the correct values.

 

Shared Folders (SMB) Server Configuration

File Services