Article ID: 969943 - Last Review: July 17, 2009 - Revision: 1.1

Memory leaks occur in the Powershell.exe process when you run the Get-MailboxStatistics command and the Get-PublicFolderStatistics command in Exchange Server 2007 Service Pack 1

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
Expand all | Collapse all

SYMPTOMS

Memory leaks occur in the Powershell.exe process when you run the Get-MailboxStatistics command and the Get-PublicFolderStatistics command on an Exchange Server 2007 Service Pack 1 (SP1)-based server. Generally, this problem occurs when you run those commands in a script continually.

Note When a memory leak occurs, you can check the Private Bytes counter of the Powershell.exe process in the Performance Monitor tool to find the memory leak.

CAUSE

This issue occurs because a MAPI session object is created and cannot be disposed of when you run the Get-MailboxStatistics command and the Get-PublicFolderStatistics command.

RESOLUTION

To resolve this problem, install Update Rollup 9 for Exchange 2007 Service Pack 1. For more information about Update Rollup 9 for Exchange Server 2007 Service Pack 1, see the following Exchange Help topic:
Description of Update Rollup 9 for Exchange Server 2007 Service Pack 1 (http://go.microsoft.com/fwlink/?LinkId=157085)
For more information about how to obtain the latest Exchange service pack or update rollup, see the following Exchange Help topic:
How to Obtain the Latest Service Pack or Update Rollup for Exchange 2007 (http://go.microsoft.com/fwlink/?LinkId=152570)

MORE INFORMATION

For more information about the Get-PublicFolderStatistics command, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/aa998663.aspx (http://technet.microsoft.com/en-us/library/aa998663.aspx)
For more information about the Get-MailboxStatistics command, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/bb124612.aspx (http://technet.microsoft.com/en-us/library/aa998663.aspx)

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

APPLIES TO
  • Microsoft Exchange Server 2007 Service Pack 1, when used with:
    • Microsoft Exchange Server 2007 Enterprise Edition
    • Microsoft Exchange Server 2007 Standard Edition
Keywords: 
kbsurveynew kbexpertiseinter kbfix kbqfe KB969943