On TV.com: Confession: I Like THE BIG BANG THEORY
BNET Business Network:
BNET
TechRepublic
ZDNet

July 26th, 2007

Vista Hands On #17: Solving a pesky resource problem

Posted by Ed Bott @ 4:53 am

Categories: Windows Vista

Tags: Window, Microsoft Windows Vista, Microsoft Windows, Ed Bott

In Focus » See more posts on: Vista, Hands on Vista

Have you experienced any of these problems with Windows Vista? After opening a large number of programs and windows, you try to launch a new program or open a new browser tab or even switch back to an already running program and instead:

  • You get a strange “out of memory” message, despite the fact that you’re using only a fraction of the RAM installed on your system.
  • The window opens but its contents refuse to load.
  • The window opens, but menus are missing, dialog boxes are empty, or buttons don’t work.

In my case, I experienced this problem regularly on multiple Vista systems when I opened Outlook 2007, Forte Agent, Adobe Acrobat (editing three or four large documents), BlogJet, Windows Live Writer, Word (working with several large documents), and IE7 with more than 30 tabs. The problem vanished for me, as it does for most people, when I closed a few windows, but that’s obviously not the ideal solution. After all, what’s the point of having all that RAM if you can’t use it?

The problem, as it turns out, is as old as the Windows NT family. I’ve found references to this issue that date back to the mid-1990s and Windows NT 3.1 and 3.5. The fix for Vista, just as for those much older versions of Windows, involves editing a key in the Windows Registry.

First the problem: Windows sets aside a blob of system memory called the desktop heap, which it uses to store user interface objects such as windows, menus, and hooks. The Microsoft Advanced Windows Debugging and Troubleshooting Blog offers a dense, but still readable explication of the problem and why it occurs (it’s a two-part series: read the Desktop Heap Overview first and if your eyes haven’t glazed over read the shorter Desktop Heap Part 2 for details that are specific to 64–bit Windows, systems with 3GB of RAM, and Windows Vista).

The fix for 32–bit Windows Vista is simple: The interactive desktop heap size needs to be bumped up to a value greater than its default setting of 3072KB. I recommend a conservative approach: increase the value to 4096 and try that for a while. If you continue to bump into the problem, try a higher value. On one system here, I’ve been running without issues using a value of 8192KB.

Before I explain how to make the change, I offer the following disclaimers: Editing the Registry is not a trivial task. If you make a mistake, or if your system doesn’t work the way mine does, you could end up causing damage to data or render your system unbootable. You do this at your own risk.

OK, with that out of the way, here are the step-by-step instructions:

  1. Click Start, type regedit in the Search box, and click the Regedit icon that appears at the top of the Start menu.
  2. Click OK in response to the UAC prompt.
  3. In Registry Editor, navigate to the following key:
    HKEY_LOCAL_MACHINE
    – SYSTEM
    – – CurrentControlSet
    – – – Control
    – – – – Session Manager
    – – – – – SubSystems
  4. In the contents pane to the right, double-click the Windows value from the bottom of the list. This opens an Edit String dialog box containing a very long text string.
  5. Scroll through this text value until you find the section that begins with SharedSection. Change the second value from its default of 3072 to a higher number. Do not change any other values.

desktop_heap_regedit.png

Restart the computer. If your experience is like mine, you’ll find that those odd error messages are gone and that you’re able to open many more windows without any display issues.

Ed BottEd Bott is an award-winning technology writer with more than two decades' experience writing for mainstream media outlets and online publications. See his full profile and disclosure of his industry affiliations.

Email Ed Bott

Subscribe to Ed Bott's Microsoft Report via Email alerts or RSS.

  • Talkback
  • Most Recent of 126 Talkback(s)
RE: Vista Hands On #17: Solving a pesky resource problem
What about Vista64?? Why did you skip over the fix for 64-bit windows? (Read the rest)
Posted by: Webster Posted on: 07/23/09 You are currently: a Guest | | Terms of Use
That's crazy  wolf_z | 07/26/07
Irrelevant  frgough | 07/26/07
1990's relic  shoktai@... | 07/26/07
nothing crazy  PhilippeV | 07/27/07
Really?  jacarter3 | 07/26/07
Absolutely right  Ed BottZDNet Moderator | 07/26/07
Oh, is that why your books  xuniL_z | 07/27/07
easy job?  xuniL_z | 07/27/07
another NBMer talking!  Linux Geek | 07/26/07
Message has been deleted.  James T. Kirk | 07/26/07
Message has been deleted.  OButterball | 07/26/07
Does Linux have enough applications to reach such a limit?  ye | 07/26/07
The matter isn't the OS here...  Mitch 74 | 07/27/07
Yes it has  PhilippeV | 07/27/07
yep  pavka@... | 07/27/07
dual monitor?  Arm A. Geddon | 07/26/07
of coures.  rtk | 07/27/07
Multiple monitors vs; virtual desktops  PhilippeV | 07/27/07
Multiple Monitors for specific kinds of tasks  Dr_Zinj | 07/27/07
Perfest for a permanent (wired) desktop at home but  PhilippeV | 07/27/07
VD wink  bkinsey@... | 07/27/07
I was just having a little fun with linux geek. happy  Arm A. Geddon | 07/27/07
Guess you have never  Linux User 147560 | 07/26/07
Yeah., YOu tell Him LU.....you guys need to have  xuniL_z | 07/27/07
No you don't  Linux User 147560 | 07/27/07
Now it's my turn, cowboy  xuniL_z | 07/27/07
Oh cowboy!  Linux User 147560 | 07/27/07
well well.  xuniL_z | 07/28/07
Oh, about you calling me a "sissy".  xuniL_z | 07/28/07
well..  xuniL_z | 07/27/07
It's not native to Windows...  Linux User 147560 | 07/27/07
No, you just love  xuniL_z | 07/28/07
Did all that extremely complicated hard work occur?  Ole Man | 07/27/07
No, Ole man.  xuniL_z | 07/28/07
The adventures of Zuny  Ole Man | 07/29/07
Don't know what you feed YOUR Windows. . .  bkinsey@... | 07/27/07
That's my Linux rig  Linux User 147560 | 07/27/07
Got ya. . .  bkinsey@... | 07/27/07
You work for the MAN!!!!  xuniL_z | 07/30/07
excellent feature  the_fiddler_on_the_roof | 12/04/07
I do that  voska | 07/26/07
Vista would have no problem with that  Ed BottZDNet Moderator | 07/26/07
Depends on what you do with your computer  jsheehy@... | 07/27/07
CRAZY??? REALLY???  Dr_Zinj | 07/27/07
What OS were you using?  xuniL_z | 07/27/07
Another Multi-multi tasker  bkinsey@... | 07/27/07
Has everyone forgotten  Freebird54 | 07/30/07
I use lots of different programs and windows  Nostredamus | 07/27/07
Listen to the canary  royalef | 07/28/07
Not crazy  DNSB | 07/28/07
Not so crazy....  themonk@... | 07/28/07
You have got to be freaking kidding me.  frgough | 07/26/07
Isn't this something that the  jacarter3 | 07/26/07
Re: and have never, ever seen or heard of this resource limit issue before.  Kid Icarus-21097050858087920245213802267493 | 07/26/07
One and only time I got this  mswift@... | 07/27/07
Not claiming this is a legacy problem  Ed BottZDNet Moderator | 07/27/07
Sad  bmgoodman | 07/26/07
Way too true, it is REALLY sad  jacarter3 | 07/26/07
Irony is  Linux User 147560 | 07/26/07
The only people who touted Vista as a "rewrite"  PB_z | 07/26/07
The only people who touted Vista as a "rewrite"  Par-Pro | 07/27/07
Why NOT removing old code?  PhilippeV | 07/27/07
The real Irony is you have no clue  xuniL_z | 07/27/07
Yes that's why several virus's  Linux User 147560 | 07/27/07
Like I said.....  xuniL_z | 07/28/07
Like you said.........  Ole Man | 07/30/07
Are you LU's protector?  xuniL_z | 07/31/07
No, I'm not LU's protector  Ole Man | 07/31/07
Not Just NT  Whyaylooh | 07/26/07
Of course not just NT  rseiler | 07/26/07
Default settings  dran001@... | 07/27/07
Brilliant move on Microsoft's part!  OButterball | 07/26/07
What the heck are you talking about?  PB_z | 07/26/07
I think he means  HypnoToad72 | 07/26/07
Yer right, HypnoToad72, ...  OButterball | 07/26/07
Are you being funny or really this clueless?  AnthonySPT | 07/26/07
Don't try to help  crypt2121 | 07/27/07
Duct tape  Ed BottZDNet Moderator | 07/27/07
I think what he is saying....  reclaim25 | 07/27/07
We have different needs  Ed BottZDNet Moderator | 07/27/07
I meant 30 tabs (no post) :P  reclaim25 | 07/27/07
Seems kind of small given typical memory sizes today.  ye | 07/26/07
To much common sense  dragosani | 07/26/07
Great Story! Thanks for the Tip!  chessmen | 07/26/07
What?!  Mike Cox | 07/26/07
You tell em!  davidr555 | 07/26/07
Many thanks Ed;  yukselhak | 07/26/07
Yes, Vista is an improvement...  nizuse | 07/26/07
Ram Problems  yagijd | 07/26/07
XP 64? HACK *cough*  jasonshortphd | 07/27/07
Not just Vista...  jwknoch@... | 07/27/07
Now I know why I had problems with the Gimp  D. W. Bierbaum | 07/27/07
My vote was mostly for your writing style Ed!  ms2beu@... | 07/27/07
Use the Negative to Vista slant as yet another story to suck people in  DonBurnett | 07/27/07
Negative to Vista?  Ed BottZDNet Moderator | 07/27/07
Completely jumped the track!  Ole Man | 07/27/07
Remember Windows 95 ; missing features for scalability and autoadaptativity  PhilippeV | 07/27/07
Messy Desktop  ParrotHeadFL | 07/27/07
Just Can't quiet get that much RAM shoehorned into my laptop  bill.howey@... | 07/27/07
PATHETIC  ITGuy04 | 07/27/07
45 mins.? LOL  neverXmiss | 08/24/07
You call this negative?  JustMy2Cents | 07/27/07
XP Too not just Vista!  vmeck@... | 07/27/07
why isn't the default 8192?  hansonjb | 07/27/07
Intelligent defaults needed  Ed BottZDNet Moderator | 07/27/07
An Example of Corporate Monopolization  vancegilbert@... | 07/27/07
SAVE A REGISTRY STATE BEFORE AND AFTER  BALTHOR | 07/27/07
Why is there a static limit for this in the first place?  Resuna | 07/27/07
Actually  Ed BottZDNet Moderator | 07/28/07
I'm back in XP  3dtodd | 07/27/07
Out of memory  michelenp@... | 07/27/07
tip  jonathan_stephenson@... | 07/27/07
Genealogists use Mutiple Monitors  beepa | 07/28/07
Wait a minute...  eye4bear | 07/28/07
Multi-apps load-up  scurling | 07/28/07
Great tip!  lawryll@... | 07/28/07
Incredible ! ! !  rdelaplaza | 07/29/07
Outlook 2007 - a hog  Jim Johnson | 07/29/07
OL2007 works fine here  Ed BottZDNet Moderator | 07/30/07
Make sure it's a multiple of 1024 K  Nemglan | 07/30/07
Do you have a source for this?  Ed BottZDNet Moderator | 07/30/07
Change really helped  colleyp@... | 07/30/07
Pesky Resource-In MsCONFIG?  rterrano | 07/30/07
RE: Vista Hands On  sbw07 | 11/13/08
RE: Vista Hands On  Bargeo | 11/13/08
RE: Vista Hands On #17: Solving a pesky resource problem  Webster | 07/23/09

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

Click Here
advertisement

Recent Entries

advertisement

Archives

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

Click Here