How to increase the kernel memory threshold

Article translations Article translations
Article ID: 811308 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

If you send or receive Microsoft Message Queuing messages, you may receive the following error:
0xc00e0027 (MQ_ERROR_INSUFFICIENT_RESOURCES)
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
810507 Error 0xc00e0027 when you send or receive a Microsoft Message Queuing message

CAUSE

Message Queuing stops allocating kernel memory when the kernel memory consumption exceeds 80 percent of the total available. You can send and receive messages again when the kernel memory consumption reaches less than 80 percent of the threshold.

RESOLUTION

Service pack information

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

Hotfix information

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

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

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.

   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   17-Dec-2002  16:51  5.0.0.759         280,336  Mq1repl.dll
   21-Oct-2002  18:38  5.0.0.759          14,096  Mq1sync.exe
   17-Dec-2002  16:49  5.0.0.764          75,408  Mqac.sys
   17-Dec-2002  16:51  5.0.0.760         217,360  Mqads.dll
   29-Oct-2002  16:50  5.0.0.761          25,360  Mqbkup.exe
   17-Dec-2002  16:52  5.0.0.750          76,560  Mqdscli.dll
   17-Dec-2002  16:52  5.0.0.735          41,744  Mqdssrv.dll
   21-Oct-2002  18:38  5.0.0.759          98,064  Mqmig.exe
   17-Dec-2002  16:51  5.0.0.759         265,488  Mqmigrat.dll
   17-Dec-2002  16:51  5.0.0.740         222,480  Mqoa.dll
   17-Dec-2002  16:52  5.0.0.762           8,464  Mqperf.dll
   17-Dec-2002  16:52  5.0.0.764         424,720  Mqqm.dll
   17-Dec-2002  16:51  5.0.0.756         102,672  Mqrt.dll         
   17-Dec-2002  16:51  5.0.0.759          70,928  Mqsec.dll
   17-Dec-2002  16:51  5.0.0.762          23,824  Mqupgrd.dll      
   17-Dec-2002  16:51  5.0.0.763         110,352  Mqutil.dll
   17-Dec-2002  16:51  5.0.0.748          64,784  Msmq.cpl

				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft Windows 2000 Service Pack 4.

MORE INFORMATION

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore 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


This hotfix lets you raise or lower the kernel memory threshold in Message Queuing.

In certain circumstances, you may want to raise the threshold because an application, a driver, or a system component is consuming kernel memory. Garbage collection is done by the kernel only when the paged pool memory consumption reaches 80 percent. However, Message Queuing stops functioning at 80 percent of paged pool memory consumption. If you set the kernel memory threshold above 80 percent, this makes sure that Message Queuing does not go into "low memory mode" until the Windows Memory Manager starts cleanup.

In other circumstances, you may want to lower the threshold to limit the amount of kernel memory that is used by Message Queuing.

To change the kernel memory threshold, follow these steps:
  1. Install the hotfix that is mentioned in this article.
  2. Add the following registry key:

    HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ\Parameters\KernelMemThreshold
    of data type DWORD

    The default is 80. The value can range from 1 to 99. Anything else is converted to 80.
    Note When you create this value the Decimal option must be selected. If you select Hexidecimal, the default value of 80 is used.
To change the kernel memory threshold on a clustered Message Queuing server, follow these steps:
  1. Install the hotfix that is mentioned in this article on each cluster node.
  2. Add the following registry key of data type DWORD on each cluster node:
    HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ\Parameters\KernelMemThreshold
  3. Add the following registry key of data type DWORD on the active node in the cluster:
    HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ\Clustered QMs\MSMQ$[Clustered resource name]\Parameters\KernelMemThreshold
For more information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the following article number to view the article in the Microsoft Knowledge Base:
265173 The Datacenter Program and Windows 2000 Datacenter Server Product
For more information about how to install multiple hotfixes with only one restart, click the following article number to view the article in the Microsoft Knowledge Base:
296861 How to install multiple Windows updates or hotfixes with only one reboot

Properties

Article ID: 811308 - Last Review: January 8, 2007 - Revision: 8.1
APPLIES TO
  • Microsoft Message Queuing 2.0
Keywords: 
kbhotfixserver kbqfe kbtshoot kbwin2ksp4fix kbwin2000sp3fix kbwin2000presp4fix kbfix kbbug KB811308

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com