Microsoft KB Archive/919237

= You may experience slow performance when you view a Web page that uses JScript in Internet Explorer 6 =

Article ID: 919237

Article Last Modified on 10/16/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, Standard x64 Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Server 2003, Datacenter x64 Edition
 * Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
 * Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
 * Microsoft Windows Server 2003 R2 Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86)
 * Microsoft Windows Server 2003 R2 Datacenter Edition (32-Bit x86)
 * Microsoft Windows Server 2003 R2 Standard x64 Edition
 * Microsoft Windows Server 2003 R2 Enterprise x64 Edition
 * Microsoft Windows Server 2003 R2 Datacenter x64 Edition
 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Professional 64-Bit Edition (Itanium)

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista



SYMPTOMS
When you use Microsoft Internet Explorer 6 to view a Web page that uses Microsoft JScript, you may experience slow performance.



CAUSE
This problem may occur when a script creates many variables at the same time. The problem may also occur when a script contains many unique values that are parsed at the same time. The problem occurs because of the way the JScript engine performs garbage collection.

The garbage collection algorithm monitors the following values:
 * The number of variable allocations in the script
 * The number of literal values that are used in the script
 * The total size of the string values that are allocated in the script

When thresholds for these values are exceeded, garbage collection occurs. The garbage collection process interrupts scripts that are running. Therefore, the scripts are suspended until garbage collection is completed.



RESOLUTION
To resolve this problem, install Microsoft Windows Script 5.7. Windows Script 5.7 is available for the following operating systems.

Windows XP
Download the Windows Script 5.7 for Windows XP package now.

Windows Server 2003
Download the Windows Script 5.7 for Windows Server 2003 package now.

Windows 2000
Download the Windows Script 5.7 for Windows 2000 package now.

Microsoft Windows XP
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
You must have Microsoft Windows XP Service Pack 2 (SP2) installed to apply this hotfix. If you need to install this update on Windows XP 64-bit Edition, install the Microsoft Windows 2003 x64 update on the x64 version on Windows XP.

Restart requirement
You must restart the computer after you apply this hotfix.

Registry information
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

This hotfix provides three registry configuration options that you can use to customize the frequency of garbage collection in JScript. These options can provide a more optimal user experience when you run scripts that use many variables, use many values, or allocate lots of strings.

After you apply this hotfix, follow these steps to configure these registry configuration options:  Click Start, click Run, type regedit, and then click OK. Locate and then click the following registry subkey:

 On the Edit menu, point to New, and then click Key. Type Windows Script, and then press ENTER. Right-click Windows Script, click New, and then click Key. Type Features, and then press ENTER.</li> Right-click Features, click New, and then click Key.</li> Type Iexplore, and then press ENTER.

Note This registry entry sets JScript garbage collector options for Internet Explorer. You can add more registry entries to set JScript garbage collector options for other programs. In each entry, use the executable file name without the file name extension.</li> Right-click Iexplore, click New, and then click DWORD Value.</li> Type GcVarTrigger, and then press ENTER.</li> Right-click GcVarTrigger, and then click Modify.</li> In the Value data box, type a value to set the number of variables that can be allocated in JScript before garbage collection occurs, and then click OK.

Note The default value is 0x00000100. We recommend an initial value of 0x00000500.</li> Right-click Iexplore, click New, and then click DWORD Value.</li> Type GcValTrigger, and then press ENTER.</li> Right-click GcValTrigger, and then click Modify.</li> In the Value data box, type a value to set the number of literal values that can be allocated in JScript before garbage collection occurs, and then click OK.

Note The default value is 0x00001000. We recommend an initial value of 0x00005000.</li> Right-click Iexplore, click New, and then click DWORD Value.</li> Type GccbSysTrigger, and then press ENTER.</li> Right-click GccbSysTrigger, and then click Modify.</li> In the Value data box, type a value to set the number of string value space in bytes that can be allocated in JScript before garbage collection occurs. and then click OK.

Note The default value is 0x00010000. We recommend an initial value of 0x00020000.</li> Exit Registry Editor, and then restart the computer.</li></ol>

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Microsoft Windows XP, 32-bit versions

Microsoft Windows XP Professional x64 Edition

Service pack information
To resolve this problem, obtain the latest service pack for Windows Server 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

889100 How to obtain the latest service pack for Windows Server 2003

Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
You must have Windows Server 2003 Service Pack 1 (SP1) installed to apply this hotfix.

Restart requirement
You must restart the computer after you apply this hotfix.

Registry information
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

This hotfix provides three registry configuration options that you can use to customize the frequency of garbage collection in JScript. These options can provide a more optimal user experience when you run scripts that use many variables, use many values, or allocate lots of strings.

After you apply this hotfix, follow these steps to configure these registry configuration options: <ol> Click Start, click Run, type regedit, and then click OK.</li> <li>Locate and then click the following registry subkey:

</li> <li>On the Edit menu, point to New, and then click Key.</li> <li>Type Windows Script, and then press ENTER.</li> <li>Right-click Windows Script, click New, and then click Key.</li> <li>Type Features, and then press ENTER.</li> <li>Right-click Features, click New, and then click Key.</li> <li>Type Iexplore, and then press ENTER.

Note This registry entry sets JScript garbage collector options for Internet Explorer. You can add more registry entries to set JScript garbage collector options for other programs. In each entry, use the executable file name without the file name extension.</li> <li>Right-click Iexplore, click New, and then click DWORD Value.</li> <li>Type GcVarTrigger, and then press ENTER.</li> <li>Right-click GcVarTrigger, and then click Modify.</li> <li>In the Value data box, type a value to set the number of variables that can be allocated in JScript before garbage collection occurs, and then click OK.

Note The default value is 0x00000100. We recommend an initial value of 0x00000500.</li> <li>Right-click Iexplore, click New, and then click DWORD Value.</li> <li>Type GcValTrigger, and then press ENTER.</li> <li>Right-click GcValTrigger, and then click Modify.</li> <li>In the Value data box, type a value to set the number of literal values that can be allocated in JScript before garbage collection occurs, and then click OK.

Note The default value is 0x00001000. We recommend an initial value of 0x00005000.</li> <li>Right-click Iexplore, click New, and then click DWORD Value.</li> <li>Type GccbSysTrigger, and then press ENTER.</li> <li>Right-click GccbSysTrigger, and then click Modify.</li> <li>In the Value data box, type a value to set the number of string value space in bytes that can be allocated in JScript before garbage collection occurs. and then click OK.

Note The default value is 0x00010000. We recommend an initial value of 0x00020000.</li> <li>Exit Registry Editor, and then restart the computer.</li></ol>

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Microsoft Windows Server 2003 with Service Pack 1

Microsoft Windows Server 2003, x64-based versions

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Microsoft Windows Server 2003 Service Pack 2.

<div class="moreinformation_section">

MORE INFORMATION
For more information about JScript, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/hbxc2t98.aspx

For more information about the terms that are used in this article, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Technical support for x64-based versions of Microsoft Windows
If your hardware came with a Microsoft Windows x64 edition already installed, your hardware manufacturer provides technical support and assistance for the Windows x64 edition. In this case, your hardware manufacturer provides support because a Windows x64 edition was included with your hardware. Your hardware manufacturer might have customized the Windows x64 edition installation by using unique components. Unique components might include specific device drivers or might include optional settings to maximize the performance of the hardware. Microsoft will provide reasonable-effort assistance if you need technical help with a Windows x64 edition. However, you might have to contact your manufacturer directly. Your manufacturer is best qualified to support the software that your manufacturer installed on the hardware. If you purchased a Windows x64 edition such as a Microsoft Windows Server 2003 x64 edition separately, contact Microsoft for technical support.

For product information about Microsoft Windows XP Professional x64 Edition, visit the following Microsoft Web site:

http://www.microsoft.com/windowsxp/64bit/default.mspx

For product information about x64-based versions of Microsoft Windows Server 2003, visit the following Microsoft Web site:

http://www.microsoft.com/windowsserver2003/64bit/x64/default.mspx

Additional query words: Winx64 Windowsx64 64bit 64-bit

Keywords: kbbug kbfix kbqfe kbwebbrowser kbpubtypekc kbhotfixserver kbwinserv2003presp2fix KB919237

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.