How to fix Out of Memory error in windows 10

You may receive an “Out of Memory” error message because of the desktop heap limitation. After you open many application windows, you may be unable to open any additional windows. Sometimes, a window may open. However, it will not contain the expected components. Additionally, you may receive an error message that resembles the following:

Out of memory or system resources. Close some windows or programs and try again.

This problem occurs because of the desktop heap limitation. If you close some windows, and then you try to open other windows, these windows may open. However, this method does not affect the desktop heap limitation.

How to fix Out of Memory error in windows 10

To fix this problem automatically, click the Fix it button or link. Click Run in the File Download dialog box and follow the steps in the Fix it wizard. So without wasting any time let’s see How to Fix Out of Memory error in windows 10 with the help of the below-listed troubleshooting steps.

How to fix Out of Memory error in windows 10

To resolve this problem yourself, modify the desktop heap size. To do this, follow these steps:

1.Click Start, type regedit in the Start Search box, and then click regedit.exe in the Programs list or press Windows key + R and in Run dialog box type regedit, click OK.

open registry editor

2.Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems

subsystem key in sesssion manager

3.Right-click the Windows entry, and then click Modify.

modify window entry

4.In the Value data section of the Edit String dialog box, locate the SharedSection entry, and then increase the second value and the third value for this entry.

shared section string

SharedSection uses the following format to specify the system and desktop heaps:

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”.

Note:

  • The second value of the SharedSection registry entry is the size of the desktop heap for each desktop that is associated with an interactive window station. The heap is required for each desktop that is created in the interactive window station (WinSta0). The value is in kilobytes (KB).
  • The third SharedSection value is the size of the desktop heap for each desktop that is associated with a “non-interactive” window station. The value is in kilobytes (KB).
  • We do not recommend that you set a value that is over 20480 KB for the second SharedSection value.
  • We increase the second value of the SharedSection registry entry to 20480 and increase the third value of the SharedSection registry entry to 1024 in the automatic fix.

You may also like:

That’s it you have successfully Fix Out of Memory error in windows 10 error but if you still face some error regarding this then try this post on How to fix “Your Computer Is Low On Memoryand see if it helps. If you still have any queries regarding this post please feel free to comment.

8 thoughts on “How to fix Out of Memory error in windows 10”

  1. So the instructions for the manual fix tell us that the values are xxxx,yyyy,zzzz. But the image above shows the values as xxxx,yyyyy,zzz (1024,20480,768). Then the instructions tell you to replace yyyy and zzzz (4 digits each) with 20480 (5 digits) for value Y and 1024 (4 digits) for value Z. But this doesn’t make sense since the image shows 1024 as value X already.
    What gives?

  2. I tried to change the 3rd (zzzz) value to 1024 for my 64-bit machine, but got an error, “Cannot edit Windows. Error writing the value’s new contents.” I suspect my company’s IT server admin has these laptops locked down as to what we can change with our piddly ‘user priviledges’.
    I couldn’t find a way to run “Run/regedit…” as an administrator.

  3. Ԍreetings I am so glad I found your weƄ site, I really found you by mistake, whiⅼe I was searching on Aol for
    something else, Anyways I am here now and would just like to saʏ thank ʏou for a marvеlous post and a all
    round entertaining blog (I also love the theme/design),
    I don’t have time to browse it all at the moment but I have bookmarked it and
    also includеd your RSS feeds, so when I have time I will be back to read more, Please do keep up the aԝesome work.

    check my bⅼog : How To Lock Files In Less Than 8 Ⅿіnutes Using These Amazing
    Tools

  4. Avatar photo
    Dean A Rothwell

    I increased the third value (zzzz) from 768 to 2048 but the issue is still happening. Can I increase the third value further? Obviously I can’t increase the second value as Microsoft don’t recommend going beyond 20480.

  5. seems like this doesn’t work in newer Windows 10 versions, i tried it on 1607 – worked without problems, then i upgraded that machine to 1809, settings were back to default and are not changeable anymore. All i got was the error “Cannot edit Windows. Error writing the value’s new contents.”, trying to change it via cmd / powershell results in access denied.
    The only way i found to change it was by booting to safemode and doing it there.

Leave a Comment

Your email address will not be published. Required fields are marked *