The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    FIX: (Vista/XP/Server 2003): Desktop heap exhausted? Windows cannot open a new window, app, tab, menu etc.?

    Discussion in 'Windows OS and Software' started by ikovac, Oct 9, 2007.

  1. ikovac

    ikovac Cooler and faster... NBR Reviewer

    Reputations:
    872
    Messages:
    1,637
    Likes Received:
    0
    Trophy Points:
    55
    This fix enables Windows opening many more windows and start more processes. This is for people with lots of ram that usually open many windows (or IE tabs for example) and seldom restart their notebooks.

    I use my 2GB ram a lot - I usually run multiple apps at once including Dreamweaver (likes memory and it has a memory leak btw), Fireworks, IE7 with 10+ tabs, Word (few windows), Access, WMP + usual stuff like Windows explorers, winrar, skype, gtalk etc... Now and then I also play games like fear and cs:s (steam).

    All in all I usually use around 1,5GB ram and I don't restart often, but put notebook to hybrid sleep instead. And it is used like that for weeks. It is a very good practice since comp wakes up in seconds with my programs already started and ready, but it has one disadvantage - it sometimes uses all of Windows Desktop Heap resources meaning sometimes I cannot open a new tab, start new app or even get a rightclick menu! I need to close some window in order to free some of the resources. If you go to the Event Viewer/System you would find something like this: "A desktop heap allocation failed". It has nothing to do with free ram!

    You can read an exellent article here: http://blogs.msdn.com/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx

    Microsoft KB:
    It happens on XP and Windows Server 2003 too. Vista is not an exception. 64 bit versions seem to have much more resources ready for allocation.

    So how to fix it?

    Fortunately heap size can be adjusted, but in registry. All registry edits bring a dose of warning and danger. Please be careful and read the following instructions:

    1. Click on Start - and in search type regedit and press enter.
    2. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems\
    3. Make backup of your key! Click on File menu and choose Export. Give it a name and choose the destination. Click Save and there it is - a backup of your SubSystems reg key. Just in case you want the original key back.
    4. Doubleclick on Windows key in the right pane.
    5. In Value data field scroll left or right using arrow keys until you find this:
    SharedSection=1024,3072,512. Change 3072 into 4096 so it reads: SharedSection=1024,4096,512

    That is it! Now you can open more tabs, windows, start more processes and enjoy less restarts and shutdowns and more sleeps and hibernations. Good trick for notebooks!

    I hope it helps. It helped me at least! :cool:

    Cheers,

    Ivan