In this post I will show you, how to fix “Not enough memory resources are available to process this command” error in the windows command prompt.
The ‘memory’ on your PC is made up of HDD and RAM, which are types of storage areas.
If the RAM is low or the program you are trying to run is using too much of it, you might get an error, which then needs to be fixed with registry editing, system cleanup or a software update.
According to Microsoft, you might get this error if you don’t have the IRPStackSize registry entry on the server set high enough. This is why tweaking the registry can be one of the easiest fixes for this issue.
You should always be careful when changing registry values because if you incorrectly change something, you might cause a serious system problem.
Remember to back up the registry before making any changes so you can always put it back the way it was if something does go wrong.
5 Ways To Fix “Not Enough Memory Resources Are Available To Process This Command”
Let’s take a look at 5 easy ways to get rid of “Not Enough Memory Resources Are Available To Process This Command” problem.
Fix #1: Change the IRPStackSize Value
- Press the Windows key and R together to open the Run dialog.
- Type in “regedit” and press “OK“.
- Find and choose this subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
If the IRPStackSize entry isn’t available do the following:
- Click “Edit” then “New” and then “DWORD Value“
- Type in “IRPStackSize” and press Enter
- Press “Edit” then “Modify“
- Type a bigger number in the Data Value box and click OK (the values range from 0x1 to 0xC and refer to numbers 1 through 12)
If you still get the same problem, repeat these steps making the IRPStackSize larger again.
Fix #2: Change the SharedSection Values
- Press the Windows key and R together to open the Run dialog.
- Type in “regedit” and press “OK“.
- Find and choose this subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems
- Click on the Windows value than “Edit” and on “String“
- Make the SharedSection parameter higher
The format will read like this on Windows
NT: SharedSection=xxxx,yyyy
- Add either 256 or 512 after the “yyyy” figure
The format will read like this on Windows 2000m XP or Server 2003:
NT: SharedSection=xxxx,yyyy,zzzz
- Increase the “yyyy” value to 12288 and the “zzzz” value to 1024 if you’re using a 32-bit system
- Increase the “yyyy” value to 20480 and the “zzzz” value to 1024 if you’re using a 64-bit system
Fix #3: Block UI App Forks
If an app runs out of storage you can restart the app and make the error go away. However this is only a temporary fix.
If you want to permanently fix the problem, you need to configure the “xyzService.exe” which is running out of memory to avoid any UI application forks in session 0.
If you are running, for example, xyzService.exe in session 0 and using domain account DOMAINxyzServiceAccount, this can result in a UI fork with the UI app not exiting correctly.
You would need to configure the xyzService.exe not to fork UI application in session 0.
Fix #4: Upgrade Microsoft SQL Server
It is important to ensure you have installed the newest version of Microsoft SQL Server so your PC can have the latest patches and improvements.
Go to Microsoft’s SQL Server update page to check whether your version is up to date.
Fix #5: Erase Temporary Folder Contents
By default this is a hidden folder because there are Windows configuration files in there.
It is a good idea to back up the temporary files folder before changing anything, just in case something goes wrong and you need to put it back as it was.
This folder can be found in the Windows partition. Check ‘Hidden items’ in the view tab so you can see it.
Alternatively you can access it this way:
- Press the Windows key + R and type in %temp%
- Now press “Ctrl + A” to select all files and click Delete
- Go to your C: drive or whichever Windows is installed on and find the temp folder
- Delete all the files in there as well
- Restart your PC and see whether the problem is fixed
Conclusion
Hopefully one of the following will help you to fix “Not enough memory resources are available to process this command” error.
Also feel free to check video guide below.