Not enough storage is available to process this command

Madeleine Dean By: Madeleine Dean
3 minute read
Not enough storage is available to process this command

Home » Windows » Not enough storage is available to process this command

If you’re getting the “ERROR_NOT_ENOUGH_MEMORY” error code with the “Not enough storage is available to process this command” description, follow the troubleshooting steps listed in this article to fix it.

ERROR_NOT_ENOUGH_MEMORY: What you need to know about it

This error codes affects Windows servers, causing systems to crash with the message “Not enough storage is available to process this command” in the error log.

Microsoft explains that this error may occur if the IRPStackSize registry entry on the server is set too low. As a result, the best and simplest way to solve this problem is to tweak the registry in order to allocate a larger IRPStackSize value.

Fix: “Not enough storage to process this command”

The following steps involve modifying the registry. However, severe issues might occur if the registry values are changed incorrectly. Don’t forget to back up the registry before you modify it. In this manner, you can always restore it in case anything goes wrong.

Solution 1 — Modify the IRPStackSize value

1. Go to Start > Run >  type regedit > hit OK.
2. Locate and then select the following registry subkey:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerParameters


3. If the IRPStackSize entry is not available, follow these steps:

  1. Click Edit > New > click DWORD Value.
  2. Type IRPStackSize > hit ENTER. Type IRPStackSize exactly as it appears. Don’t forget that the value name is case sensitive.

4. Click IRPStackSize > Edit > Modify.
5. In the Data Value box, type a larger value > click OK. The values may range from 0x1 to 0xC, and are equivalent to 1 to 12 in decimal notation.

If the problem persists after you’ve modified the value, repeat the same steps and increase the value of IRPStackSize again.

Solution 2 — Modify the SharedSection values

1. Open the Registry Editor > locate the following subkey
HKEY_LOCAL_MACHINESystemCurrentControlSetControlSession ManagerSubSystems

2. Select the Windows value > go to the Edit menu > choose String.


3. Increase the SharedSection parameter.

  • Windows NT uses the following format: SharedSection=xxxx,yyyy
    Add “,256” or “,512” after the yyyy number.
  • Windows 2000, Windows XP, and Windows Server 2003 use the following format: SharedSection=xxxx,yyyy,zzzz
    For 32-bit operating systems, increase the yyyy value to “12288”; increase the zzzz value to “1024”.
    For 64-bit operating systems, increase the yyyy value to “20480”; increase the zzzz value to “1024”.

Solution 3 — Block UI app forks

A Windows user recently described an interesting troubleshooting method to fix the “Not enough storage is available to process this command” error code.

If an important app runs out of storage, you can restart it. The error will temporarily disappear. However, the desktop heap for the window station service will encounter memory issues again. To permanently fix this issue, configure the xyzService.exe that runs out of memory to avoid UI application forks in session 0. Here’s how use BlueCode described the resolution adopted for this particular situation:

After talked with customer, I figured out that the whole story here is that, customer ran xyzService.exe with domain account DOMAINxyzServiceAccount in session 0, and xyzService.exe forks child processes xyzUIApplication.exe somehow periodically. Unfortunately the UI application did not exit as usually. This operation leaked the desktop heap in this specific window station Service-0x6-453186fc$ gradually until the depletion was detected by xyzService.exe while running queries.

To solve this issue, we simple configured the xyzService.exe and made it not forks UI application in session 0.

Solution 4 — Upgrade the Microsoft SQL Server

Install the latest Microsoft SQL Server updates to make sure that your system benefits from the latest improvements and patches. For more information about the available updates, go to the Update Center for Microsoft SQL Server.

As always, if you’ve come across other solutions to fix the ‘Not enough storage is available to process this command’ error, you can list the troubleshooting steps in the comment section below.

RELATED STORIES YOU NEED TO CHECK OUT:

Discussions

Next up

Top 4 auto SMS sender software for PC to use in 2019

Madhuparna Sukul avatar. By: Madhuparna Sukul
Less than a 1 minute read

In the world of smartphones and busy people, a large chunk of the population relies heavily on sending SMS. Whether it’s a personal message or a […]

Continue Reading

How to fix Windows 10 update error 0xca00a000 in 7 easy steps

Matthew Adams By: Matthew Adams
5 minute read

Error 0xca00a000 is a Windows Update error that arises for some users. The full error message states: 2018-07 Cumulative Update for Windows 10 Version 1803 for […]

Continue Reading

Top 5 software to recover Microsoft Excel passwords

Tashreef Shareef avatar. By: Tashreef Shareef
Less than a 1 minute read

From billing and data management to keeping track of inventory, finance and business tasks, Microsoft Excel is one handy program. The fact that Excel application is […]

Continue Reading