Registry setting keeps Windows from wigging out when you open lots of IE7 tabs - Jon Galloway

Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Should I freak out nowSummary

Opening too many tabs in Internet Explorer 7 can cause the Windows shell to switch to "Evil Mode". Fortunately, there's a registry setting that fixes the problem by increasing the Windows heap size.

The Problem

Internet Explorer starts to go nuts when you open a lot of tabs. Jeff Atwood wrote that he started to see problems when he had IE 45 tabs open:

When researching blog posts, I tend to open a lot of browser windows and tabs. At least twice per week, I have so many browsers and tabs open that I run into some internal limitation of the browser and I can't open any more. My system gets a little wonky in this state, too: right-clicking no longer shows a menu, and I'm prevented from launching other applications. But if I close a few errant browser windows or tabs, everything goes back to normal.

I've hit this problem regularly in both Windows XP and Vista - when I open a lot of tabs in IE7, weird things start happening. While IE and File Explorer are no longer integrated beyond sharing some base DLL's, the problems caused by opening too many IE tabs will affect File Explorer and the rest of the Windows shell.

Some of the problems I'd see:

  • The context menus in File Explorer are missing a lot of options or don't display at all
  • Programs will fail to open when you double-click on a shortcut
  • The Start Menu doesn't open
  • General malaise

Closing tabs or windows seemed to help the problem, but sometimes the only solution was a reboot. That was especially annoying for me, as I tend to leave my computers running for month and have been known to have multitudes of tabs open for weeks on end.

EnableEvilMode=false

Fortunately a comment on Jeff's blog points to a solution in Ed Bott's blog: Increase the size of the Desktop Heap. Like a lot of software problems, this one is hard to figure out until you know what's causing it. Once you know the cause, it all kind of makes sense and it's easy to find out more. Sure enough, Kevin Dente wrote about this exact problem under Windows XP almost 4 years ago:

According to a somewhat dated but still relevant MS KB article, “this static value is used to prevent ill- behaved applications from consuming too many resources”. Well, apparently it IE meets the “ill-behaved” criteria, because it seemed to cause Windows to bump into this limit, and Windows wasn’t handling it very gracefully. Anyway, to make a long story longer, when I bumped up the desktop heap size (from its default of 3MB up to 8MB), bingo, all of the problems magically disappeared. Whew, what a relief.

To make this change, navigate regedit to HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\SubSystems. The “Windows” value contains a big honkin’ string, and one part of it is “SharedSection=xxxx,yyyy,zzzz”. The second number (yyyy) is the one that you want to increase.

I usually provide the text for a REG file whenever I recommend a registry change, but because this is smack dab in the middle of a long, complex string it's only you'll have to take care of manually. The good news is that I've tested this for months on three Windows machines (2 Vista, one XP) and it's worked great.

If you're interested in understanding exactly what the Shared Section of the Desktop Heap has to do with IE tabs and the Windows Wonkiness (a technical term), there's more information on the NT Debugging blog.

Published Monday, January 14, 2008 11:49 PM by Jon Galloway

Comments

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Also not an issue in 64-bit Vista, as 64-bit editions have a much larger desktop heap by default.

Have I mentioned how much I like 64-bit Vista? It Just Works.

Tuesday, January 15, 2008 3:53 AM by Jeff Atwood

# Registry setting keeps Windows from wigging out when you open lots of IE7 tabs · Bingo News

Pingback from  Registry setting keeps Windows from wigging out when you open lots of IE7 tabs · Bingo News

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Awesome!  Thanks for sharing, I also tend to have many many tabs open for weeks on end.  Now if only you'd fix your blog so that I would quit getting this login dialog from some pubs.hiddennetwork each and every time the page loads.

LMAO @ Atwood (It just works)

Tuesday, January 15, 2008 9:17 AM by Josh Stodola

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Hey Now Jon,

Nice post very informative.

Thx 4 the info,

Catto

Tuesday, January 15, 2008 9:24 AM by catto

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

It's crazy how quickly some machines run into this problem - as few as 8 or 9 tabs on one of my machines.

Tuesday, January 15, 2008 3:14 PM by kevindente

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

In case you didn't think anyone noticed that you haven't posted 3 times this week...well, I have.

I like your stuff, Jon -- more!

Saturday, January 19, 2008 1:10 AM by Matt

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Does anyone know how to increase the number of Home Page tabs to higher than the 8 that is allowed by IE7?

I am used to having about double that able to open automatically in IE6 after installing MSN8.5, I think it is.

Tuesday, January 29, 2008 5:38 PM by Cindy

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

I have a related problem that I have never seend posted anywhere.  I have already increased the desktop heap, gdi objects, user objects, etc.

I open a lot of windows.  I'm talking about 10 separate instances of Internet Explorer each with 10 - 40 tabs open.  I'll reach some point where my video just flips out.  It's like it will cycle through each of the IE instances.  It will finally end up with an unusable screen.  I can alt-tab and find something to some window and close it with alt-F4 and then the video becomes OK again.

As my sessions continue, I have to keep closing more and more tabs to avoid the problem.  There is also some type of memory leak that goes along with this as eventually right before I have to shut my system down I will close all windows and still show a system memory usage of 800 mb even though everything in task manager only adds up to be a few hundred mb.

Anyone have any thoughts?

Saturday, March 22, 2008 2:57 AM by letmeaskyou

# internet explorer keeps launching

Pingback from  internet explorer keeps launching

Monday, May 05, 2008 12:13 PM by internet explorer keeps launching

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

This issue pre-dates XP - it also affected NT4.

Symptoms were the same - starting an application resulted in a new process but no new window, menus wouldn't appear etc.

Tuesday, May 20, 2008 5:33 PM by Peter

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

OK, I have looked at this registry file, but am curious what number you put for "The second number (yyyy) is the one that you want to increase."

Just want to make sure I put the right info...

Sunday, June 08, 2008 12:27 AM by Chantili

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

I have this problem but do not have this listed in registty

no Shared section when I get to the subsystem

HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\SubSystems

Please help

Monday, July 21, 2008 5:19 PM by Rietveld

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

I* never had this problem until I did a clean install of XP home. Now I have the problem with only 5 tabs only. Went to do the registry fix but I donot have the shared section listed when I go to HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\SubSystems

Monday, July 21, 2008 5:25 PM by rietveldg

# how to fix ie7

Pingback from  how to fix ie7

Saturday, July 26, 2008 3:04 PM by how to fix ie7

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Windows Vista (highlights)

You may receive an "Out of Memory" error message because of the desktop heap limitation in Windows Vista

support.microsoft.com/.../en-us

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

SharedSection=1024,3072,512

The second value of the SharedSection registry entry is the size of the desktop heap.

We do not recommend that you set a value that is over 20480 KB for the second SharedSection value.

====================+++++++++==============

3072 -> 20480 Max.

Murphy's law on constants: "Optimistics at Microsoft become more realistic after a few years have passed".

Saturday, October 11, 2008 10:17 PM by unrequired by me

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

OMG people,

you talk about XP & Vista, but you forgot to post the XP fix!!!!

PLZ PLZ PLZ Help find the XP registry line

PLZ

I could only find this:

...\SubSystems\CSRSS

CsrSrvSharedSectionBase

7f6f0000 (2137980928)

The value in brackets is non-modifyable

the 1st should be, but I don't think I wanna mess with it.

Saturday, May 23, 2009 9:06 PM by Dan

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

When you get to subsystems don't expand it, just click on it and you will see in the right window:

Default

Debug

Kmode

Optional

Posix

Required

Windows

and Windows is the one to double click on to get the values you want to change.  That second value works well at 8MB (8192) as Jon stated. As follows

%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,8192,512 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

Friday, October 02, 2009 10:36 AM by Doug Jones

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Хеллоу что то не выдит (( фрыврыввы

Tuesday, June 22, 2010 4:45 PM by NikkyRuNg

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Hi forum, cool weather and good mood. life is a good thing however turn

Monday, September 27, 2010 1:29 PM by Milioriking

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

I love music like "Queen". What about you?

Wednesday, September 29, 2010 10:18 AM by bobhadze

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

I love music like "Queen". What about you?

Tuesday, October 12, 2010 7:26 PM by bobkomas

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Корпорация Apple до конца января 2011 года откроет магазин приложений для компьютеров Mac

Компьютеры Mac обзаведутся магазином приложений

Mac App Store создан по образу магазина приложений App Store для портативных устройств на платформе iOS (iPhone, iPad, iPod touch). Покупка приложений будет осуществляться с помощью программы-клиента, напоминающей интерфейсом приложение iTunes.  <a href=www.m-bibirevo.ru/>%D0%9F%D1%80%D0%B8 этом приобретенные или бесплатно загруженные приложения будут автоматически добавляться в рабочую панель (Dock) Mac OS X. Отметим, что приложения, приобретенные в App Store, можно будет устанавливать на несколько личных компьютеров.</a>

Thursday, October 21, 2010 2:34 PM by POKeswwrnneth

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

starting home based business

internet home business

making online money

<a href=www.home-businessreviews.com/>home based business opportunity</a>

Wednesday, October 27, 2010 3:16 AM by saredoosque

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Евгений Федоров: Проект «Сколково» впервые формирует в России понятие и статус исследовательского бизнеса

В большинстве стран с развитой экономикой идеи создания инновационных центров ,<a href=http://zalognedvigimosti.ru>возникали в головах у бизнесменов «DAMASCUS»</a> знающих высокую цену интеллекту, воплощенному в патенты, технологии, бренды. В мире не секрет, что именно интеллектуальная собственность приносит наибольшую экономическую прибыль. Нашим бизнесменам это еще предстоит понять. Может быть, поэтому Россия идет своим путем — «сверху».

Monday, November 01, 2010 7:02 PM by HectorZJ

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Летом этого года, ездил с женой в Грецию, на окутанный легендами древней Греции загадочный остров Крит, в отель Theartemis Palace 4*.Выбирали отель по отзывам от знакомых и по отзывам в интернете. Выбирали между двумя отелями, этим и Шарм-Эль-Шейхом, Domina Coral …5*. И вот по совету моих бывших сокурсников <a href=http://www.vocer.ru>всё же решили ехать в Грецию</a>, в Theartemis Palace 4*!

Saturday, November 06, 2010 2:53 PM by nyrirewqeqstic

# Drija &raquo; Archive &raquo; Huge bug in ie8 &#8211; closed tabs and browser windows don&#8217;t actually close!

Pingback from  Drija  &raquo; Archive   &raquo; Huge bug in ie8 &#8211; closed tabs and browser windows don&#8217;t actually close!

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

Hi, today is a beautiful day in my life. I saw a first snow in this year and I save this photo for all people in the World!

Thursday, November 11, 2010 11:55 PM by thesunshining

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

от небольшой экспортной компании в корейском городе Таэгу до ведущего мирового системного интегратора, разработчика технологий и производителя цифровых устройств, полупроводников и модулей памяти. Сегодня инновационные продукты и технологии Samsung признаны на всем земном шаре. Эта очередь охватывает важнейшие вехи в истории Samsung, доходность и долю рынка, а также следовала своей задачи <a href=samsung-servicemanuals.ru/.../a> творить жизнь людей на всем земном шаре лучше. .

Sunday, November 14, 2010 8:39 AM by Craeved

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

You certainly have some agreeable opinions and views. Your blog provides a fresh look at the subject.

Friday, March 18, 2011 8:34 PM by KemeImmolfefe

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

I’ve been visiting your blog for a while now and I always find a gem in your new posts.  Thanks for sharing.

Tuesday, April 05, 2011 9:56 AM by autos auctions Farmington

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

My brother recommended I might like this blog. He was entirely right. This post actually made my day. You cann't imagine simply how much time I had spent for this information! Thanks!

<b><a href="www.gigsportal.com/how-can-you-keep-your-home-security-system.html

">Home Security Monitoring

<a/><b/>

Wednesday, April 06, 2011 6:31 PM by Home Security Monitoring phoenix

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

bouscule's

libeler

netest

<a href=google.com/.../a>

Friday, April 15, 2011 7:04 PM by teesBamislege

# re: Registry setting keeps Windows from wigging out when you open lots of IE7 tabs

buybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuybuy

Tuesday, May 17, 2011 4:39 AM by bloorry

Leave a Comment

(required) 
(required) 
(optional)
(required)