Share via


Event ID 2021 — Shared Folders (SMB) Server Resource Consumption

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 able to allocate enough system resources to function properly. Low system resources may cause the server to malfunction or stop.

Event Details

Product: Windows Operating System
ID: 2021
Source: Server
Version: 6.1
Symbolic Name: EVENT_SRV_NO_WORK_ITEM
Message: The server was unable to allocate a work item %2 times in the last %3 seconds.

Resolve

Close unnecessary network connections

The Shared Folders (SMB) server service must be able to allocate enough system resources to function properly. If too many connections are present, the service may stop responding.

To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

To close unnecessary network connections:

Note: Closing sessions in this way will disconnect all connections from the client computer to the server. If any application is running on the client computer, data may be corrupted. Please close running applications or reboot the client computer before deleting the connection.

  1. Open an elevated Command Prompt window. Click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
  2. Type net session.
  3. From the resulting list, close any unnecessary connections by typing **net session \\**computername /DELETE.

Verify

To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

To verify the number of network sessions:

  1. Open an elevated Command Prompt window. Click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
  2. Type net sessions.
  3. Verify that only the sessions that are needed appear in the list of results.

Note: Typing net statistics server at the same command prompt can also help you diagnose any connection problems. Verify that Sessions accepted, Sessions timed-out, Sessions-errored out,** **and Times buffers exhausted do not contain excessive values.

 

Shared Folders (SMB) Server Resource Consumption

File Services